我无法使用以下命令在 linux 上启动带有附加配置文件的 jvm:
java -Xverify:none -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf TestClass
我收到以下错误:
Error occurred during initialization of VM
agent library failed to init: JPIBootLoader
CGProf: command not found
在 Windows 上,上述命令成功运行,我从类的 main 方法中得到消息。
linux细节
uname -a
Linux michael 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
LD_LIBRARY_PATH
=/home/michael/eclipse/tptp/agntctrl.all_platforms-TPTP-4.7.2/linux_em64t/lib/:/home/michael/eclipse/tptp/linux.gtk.x86-TPTP-4.7.2/plugins/org。 eclipse.tptp.platform.jvmti.runtime_4.6.3.v201102041710/agent_files/linux_em64t/
TPTP_AC_HOME
=/home/michael/eclipse/tptp/agntctrl.all_platforms-TPTP-4.7.2/linux_em64t