This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to find the jar file which contains a certain class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to find the jar file which contains a certain class." Watch "How to find the jar file which contains a certain class." New topic
Author

How to find the jar file which contains a certain class.

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Am on Eclipse Ganymede 3.4.1

Am trying to find the jar file which contains a certain class file. There could be a newer version of the jar file and I want to revert back to the older one.

Thanks,
Raj.
srinivas srinivasmeenavalli
Ranch Hand

Joined: Jul 13, 2008
Posts: 65
If you want to find out locally using Eclipse:

JAR Class Finder Plug-in - http://www.alphaworks.ibm.com/tech/jarclassfinder
Class Locator Plug-in - http://classlocator.sourceforge.net/
If you want to find out from Internet or you do not have the jar yet:
try these
Find JAR
Jar Finder
saurav sarkar
Ranch Hand

Joined: Jan 07, 2007
Posts: 180

Hi Raj,

Couple of more hints.

(a) Open the class and select 'Link to Editor' action on the explorer.The explorer should get itself drill down to the jar.
(b) If you have the UI, want to know the contributing class and the plug-in , just press alt+shft+f1 for the plug-in spy which helps
you to find out the class and the plug-in.

cheers,
Saurav


Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5835
    
    7

A few more tools:

JBoss Tattletale - provides way more that the class location, also tells you exactly which JAR files your code depends on.
Isocra Jar Finder - tells you which JAR file contains a class given a regular expression. I use this one constantly (though I did modify it, the original has a few quirks I disliked)


JBoss In Action
 
GeeCON Prague 2014
 
subject: How to find the jar file which contains a certain class.