JConsole Main class

风格不统一 提交于 2019-12-11 02:08:41

问题


I am trying to start JConsole from the command line using its Main class.

I extracted the contents of jconsole.jar and in the MANIFEST.MF i can see

Main-Class: sun.tools.jconsole.JConsole

So i am trying to run the following command:

java sun.tools.jconsole.JConsole

But i am getting an exception of:

Error: Could not find or load main class sun.tools.jconsole.JConsole

Can anyone spot what am i missing here?


回答1:


Try to launch like this

java -jar jconsole.jar sun.tools.jconsole.JConsole


来源:https://stackoverflow.com/questions/16242547/jconsole-main-class

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