开发者

Linux command to find the which are the jars loaded by the jvm

Can someone let me know, what will be unix command if I need to check want are the jars lo开发者_如何学Goaded by java..


You can use lsof:

lsof -p <PID> | grep jar

use pgrep or jps to find the PID of your Java process.


You can use the option: java -verbose:class which shows what jars are being used


There are a couple ways to go about this.

From your java code you can call System.getProperty("java.class.path") which will return the whole classpath as a String.

You can also get the list by adding an argument on the command line java -verbose:class

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜