【问题标题】:The Java debugger returns "the system class loader does not define the appendToClassPathForInstrumentation method or the method failed"Java 调试器返回“系统类加载器未定义 appendToClassPathForInstrumentation 方法或方法失败”
【发布时间】:2020-04-18 17:48:09
【问题描述】:

我在尝试调试任何文件时遇到问题。控制台弹出这个:

"C:\Program Files\Java\jdk-14.0.1\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51080,suspend=y,server=n -javaagent:C:\Users\Błażej-PC\.IdeaIC2019.3\system\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Users\Błażej-PC\IdeaProjects\Choinka\out\production\test;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.4\lib\idea_rt.jar" VERSJA14TEST.Main

Connected to the target VM, address: '127.0.0.1:51080', transport: 'socket'
Unexpected error (103) returned by AddToSystemClassLoaderSearch

Unable to add C:\Users\B�a�ej-PC\.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
FATAL ERROR in native method: processing of -javaagent failed, appending to system class path failed
Disconnected from the target VM, address: '127.0.0.1:51080', transport: 'socket'

Process finished with exit code 1

任何已知的修复?

Screenshot

【问题讨论】:

  • 您尝试连接的虚拟机似乎禁用了调试,因为它缺少必要的库或被故意禁用。你必须找到制造这个东西的人,并询问他们是如何部署它的。

标签: java debugging intellij-idea


【解决方案1】:

IDEA-236445 很可能是这种情况。如果您将 IDE 系统目录重新定位到磁盘上的某个其他位置,路径中没有非 ASCII 符号 see this guide,这应该会有所帮助。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2013-11-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-16
  • 2016-11-11
  • 1970-01-01
相关资源
最近更新 更多