Skip to Main Content

Java Programming

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Find a class under Jar file

807591Mar 17 2008 — edited Mar 21 2008
Hi all,
If I want to find out a class resides under what jar file, under Linux, I use this command:

for i in $(find -name \*.jar) ; do if jar tf $i | grep �q className.class ; then echo $i ; fi ; done

Does anybody know how can I do this under Windows? If I need to know a class is under what jar file, is there anyway to do this except extracting each jar file and see what classes are under the jar file?

Is there any tool that can mount the jar file and expand it in a tree structure to see all of it's classes visually?

Any help is greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2008
Added on Mar 17 2008
5 comments
334 views