Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行自定义JAVA调试器 我尝试使用JVMTI接口运行C++编写的自定义调试器代理。我遵循以下链接_Java_C++_Jvmti - Fatal编程技术网

运行自定义JAVA调试器 我尝试使用JVMTI接口运行C++编写的自定义调试器代理。我遵循以下链接

运行自定义JAVA调试器 我尝试使用JVMTI接口运行C++编写的自定义调试器代理。我遵循以下链接,java,c++,jvmti,Java,C++,Jvmti,我正在尝试使用以下命令运行jdk的demo文件夹中的调试器java-Xbootclasspath/a:mtrace.jar-agentlib:mtrace jvm没有启动,它给了我以下输出 Error occurred during initialization of VM Could not find agent library mtrace on the library path, with error: Can't find dependent libraries 我已将包含库文件的文件

我正在尝试使用以下命令运行jdk的demo文件夹中的调试器
java-Xbootclasspath/a:mtrace.jar-agentlib:mtrace
jvm没有启动,它给了我以下输出

Error occurred during initialization of VM
Could not find agent library mtrace on the library path, with error: Can't find dependent libraries

我已将包含库文件的文件夹添加到PATH变量中,仍然没有运气,这里有什么问题?

您可以使用
-agentpath:/PATH/to/mtrace
(绝对路径)来定位代理库。
PATH
环境变量仅提供终端命令的路径。必须使用
-agentpath
运行时标志设置本机代理库路径


使用
-agentpath
您不必使用
-agentlib
开关。

您可以使用
-agentpath:/path/to/mtrace
(绝对路径)来定位代理库。
PATH
环境变量仅提供终端命令的路径。必须使用
-agentpath
运行时标志设置本机代理库路径

使用
-agentpath
您不必使用
-agentlib
开关