I've been in such a situation many times and there are instances where I have invested (read wasted) significant amount of time just clicking through directories, opening jar files and finding the class am looking for. One fine day I realized that I should have something which does this for me automatically and easily. Result of this thought was a small utility - JAR Reader - which is having a small cute swing UI where I can
- Specify which class to find
- In which directory to find
- Whether to look for the exact match or just part of. This is useful when I'm just looking for a package name or when I just know the name of the class and not sure of package name.
This small handy utility has save a lot of time of mine. It searches for class in all the available jars under one directory and all the sub-directories within the search root directory. I'm sure there are many out there who would be facing same problem and for all those poor souls, I've made this download link available to download the utility. Download it and use it however and when ever you want to use it.
To start the JAR reader utility, just open the command prompt, change the directory where you have copied the jarreader.jar file and execute following command...
java -jar jarreader.jar
with above you should be seeing as swing window as the snapshot above...
@Also See: Online site which can tell you the name of the jar file for a particular class. A nice bookmark to have with you all the time. http://www.jarfinder.com/