Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 180
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic