Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to know which class is being loaded from which jar file & path location

843829Oct 11 2005 — edited Oct 11 2005
Hi,
I have some Java code using several jar files.
I want to remove those jar files which are not being used by the code.

So , I want the JVM to output which class is being loaded from which jar .
Using "java -verbose" option doesnt solve the problem because the required info is printed only for the classes/jars native to the J2SE package .

Can anyone provide a solution which does not require me to modify the code?

Thanks,
Danish
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2005
Added on Oct 11 2005
2 comments
253 views