开发者

Seeing which jars classes are coming from

开发者 https://www.devze.com 2023-01-29 02:54 出处:网络
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?

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

精彩评论

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