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
精彩评论