检查日志为什么VM没有运行jconsole与自定义jar? [英] Where check log why VM doesn't running for jconsole with custom jar?

查看:156
本文介绍了检查日志为什么VM没有运行jconsole与自定义jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用包含我的类的jar运行jconsole:

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%

但没有任何反应 - jconsole没有不要开始!在哪里检查发生了什么错误?
BTW简单的jconsole - startds,所有路径都经过检查和纠正。
谢谢。

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

推荐答案

我记得你应该在Windows下的classpath中使用';'而不是':'( Unix风格)

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

这篇关于检查日志为什么VM没有运行jconsole与自定义jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆