cancel
Showing results for 
Search instead for 
Did you mean: 

How to search for a class to know it is in which Jar file

Former Member
0 Kudos

Hi Guys,

Can any tell me how to search a class file. I have a set of Jar files in which the required class file is there. But i don't know in which Jar file the class is. Is there any way to find out.

Regards,

Gowtham K.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Gowtham,

A very simple approach that I prefer to make use of is the Windows Search functionality.

Simply right-click on the folder containing your set of jar files, choose "Search", enter the name of the class file (eg. xyz.class) in the field "Containing Text" and click the button "Search Now". The jar containing the class should be found. Make sure you dont enter any *s in "Containing Text" for the search since it will do a wild card search anyways.

Regards,

Rohini.

detlev_beutner
Active Contributor
0 Kudos

Hi everybody,

please be aware that classlocator is the only tool of the ones given in this thread which indexes the jar and therefor in a complex situation (as the EP implementation for example is) is <i>much</i> faster than any alternative. In addition, it is quite good integrated into NWDS (Eclipse 2.x) and helps to fill up the build path in seconds, inluding usage of build path variables.

Hope it helps

Detlev

Former Member
0 Kudos

Hi Gowtham,

Please refer the following link.

http://java.sun.com/docs/books/tutorial/jar/basics/view.html

This may help u to know the contents of ur jar file.

Regards,

Uma

pravesh_verma
Active Contributor
0 Kudos

Hi Gowtham,

Please download the Class locator from the following site. This will help to know what you are looking for.

<b>http://www.alphaworks.ibm.com/tech/jarclassfinder</b>

<b>http://sourceforge.net/projects/classlocator</b>

I hope this solves your problem.

Regards

Pravesh

PS: Please consider rewarding points for helpful answer.