Java 无法使用附加的探查器运行jvm

Java 无法使用附加的探查器运行jvm,java,jvm,eclipse-tptp,Java,Jvm,Eclipse Tptp,我无法使用以下命令在linux上启动附加配置文件的jvm: java-Xverify:none-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf测试类 我遇到以下错误: Error occurred during initialization of VM agent library failed to init: JPIBootLoader CGProf: command not found 在windows上,上述命令成功运行,我从类

我无法使用以下命令在linux上启动附加配置文件的jvm:

java-Xverify:none-agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf测试类

我遇到以下错误:

Error occurred during initialization of VM
agent library failed to init: JPIBootLoader
CGProf: command not found
在windows上,上述命令成功运行,我从类的main方法获得消息

linux详细信息

uname-a
LinuxMichael 3.8.0-19-generic#29 Ubuntu SMP周三4月17日18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

LD_LIBRARY_PATH
=/home/michael/eclipse/tptptp/agntctrl.all_platforms-tptptp-4.7.2/linux_em64t/lib/:/home/michael/eclipse/tptptptp/linux.gtk.x86-tptptp-4.7.2/plugins/org.eclipse.tptptp.platform.jvmti.runtime_4.6.3.v201102041710/agent_files/linux64t/


TPTP\u AC\u HOME
=/HOME/michael/eclipse/tptpp/agntctrl。所有平台-tptptp-4.7.2/linux\u em64t

分号导致问题。在linux中
是同一行上两个独立命令之间的分隔符。它不是把事情解释为一个命令,而是认为它是两个命令

java -Xverify:none -agentlib:JPIBootLoader=JPIAgent:server=enabled;

两者都在失败。尝试使用双引号,以防止shell将其拆分

java -Xverify:none -agentlib:"JPIBootLoader=JPIAgent:server=enabled;CGProf" TestClass
您可能需要尝试放置引号的最佳位置

java -Xverify:none -agentlib:"JPIBootLoader=JPIAgent:server=enabled;CGProf" TestClass