• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 479
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 180
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic