开发者

Seeing which jars classes are coming from

I am using a script to run a Java process that uses a TON of jars in RHEL.

Is there an easy command to see which jars classes are bein开发者_开发技巧g loaded from?

For instance:

com.asdf.asdf.DummyClass==> /path/to/arf.jar

or something?


Yeap

java -verbose:class  x.y.Z


Use the class' classLoader. See code samples here: http://www.rgagnon.com/javadetails/java-0391.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜