"D:\Files\Java\jdk-13.0.2\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.06,suspend=y,server=n -javaagent:C:\Usersxxxxxgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "D:\xxx\out\production\xxx;D:\IntelliJ IDEA Community Edition 2019.\plugins\Kotlin\kotlinc\lib\kotlin-stdlib.jar;D:\IntelliJ IDEA Community Edition 2019.3.3\plugins\Kotlin\kotlinc\lib\kotlin-reflect.jar;D:\IntelliJ IDEA Community Edition 2019.3.3\plugins\Kotlin\kotlinc\lib\kotlin-test.jar;D:\IntelliJ IDEA Community Edition 2019.3.3\plugins\Kotlin\kotlinc\lib\kotlin-stdlib-jdk7.jar;D:\IntelliJ IDEA Community Edition 2019.3.3\plugins\Kotlin\kotlinc\lib\kotlin-stdlib-jdk8.jar;D:\IntelliJ IDEA Community Edition 2019.3.3\lib\idea_rt.jar" Helloworld
Connected to the target VM, address: '127.0.0., transport: 'socket'
FATAL ERROR in native method: processing of -javaagent failed, appending to system class path failed
Unexpected error (103) returned by AddToSystemClassLoaderSearch
Unable to add C:\Users\ .IdeaIC2019.3\system\captureAgent\debugger-agent.jar to system class path - the system class loader does not define the appendToClassPathForInstrumentation method or the method failed
Disconnected from the target VM, address: '127.0.0.1:59296', transport: 'socket'
Process finished with exit code 1
该回答引用ChatGPT
这个错误提示看起来是在加载 debugger-agent.jar 的时候出现了问题,可能是因为 debugger-agent.jar 这个文件不存在或者损坏了,或者是因为权限不足等原因导致加载失败。
你可以先检查一下 C:\Usersxxxxxgent\debugger-agent.jar 这个路径下是否存在 debugger-agent.jar 文件,如果存在,可以尝试修改文件的权限,或者尝试使用管理员身份运行程序。如果文件不存在,可以尝试重新下载安装 IntelliJ IDEA,并确保安装路径没有特殊字符或中文。
如果上述方法都无效,你可以尝试删除 C:\Users\ .IdeaIC2019.3\system\captureAgent\debugger-agent.jar 文件,然后重新启动 IntelliJ IDEA。如果还是不行,建议检查一下系统环境变量是否设置正确,或者卸载重新安装 JDK 和 IntelliJ IDEA。