Where check log why VM doesn't running for jconsole with custom jar?

三世轮回 提交于 2020-01-06 19:38:59

问题


I try run jconsole with jar that contains my classes like:

cd "C:\Program Files\Java\jdk1.6.0_26\bin"
set console="C:\Program Files\Java\jdk1.6.0_26\lib\jconsole.jar"
set tools="C:\Program Files\Java\jdk1.6.0_26\lib\tools.jar"
set customjar="C:\custom.jar"
jconsole -J-Djava.class.path=%console%:%tools%:%customjar%

But nothing happens - jconsole doesn't start! Where to check what error happens? BTW simple jconsole - startds, all paths are checked and correct. Thanks.


回答1:


As I remember you should use ';' in classpath under Windows instead of ':' (Unix-style)



来源:https://stackoverflow.com/questions/11086072/where-check-log-why-vm-doesnt-running-for-jconsole-with-custom-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!