Friday, July 29, 2005

Search the jar for a class

Here is how we can search a specific class in a jar file..

As we have 100s of jar files in piie, We cant check each one individually. So we can use a command line, which will give us the details about the search results.

Hope this would be some use in future to you.

Here is a simple tip on how to figure out what jar a particular class file belongs to.

Go to the directory of the jar files.
Then invoke the following command.

for %f in (*.jar) do jar tf %f | find "Graph"


Replace “Graph” with the classname you are looking for.