Where check log why VM doesn't running for jco

2019-08-31 16:49发布

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条回答
神经病院院长
2楼-- · 2019-08-31 17:06

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

查看更多
登录 后发表回答