• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar file searching

 
Rajasekhar Eega
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to add a particular jar file to classpath in which the required class is available. Then how can i know the jar file name in which the class is available?

Thank you!
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are using eclipse, then just Ctrl+Click on the Class from your Code, which will show the jar
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajasekhar Eega wrote:I want to add a particular jar file to classpath in which the required class is available.


Who/What referred you to that class in first place? I mean, how did you know that, that class exists?

 
arulk pillai
Author
Ranch Hand
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could either use Jarfinder to find the jar or write a simple Unix command to recursively search a number of jar files for a given class name.
 
Vishal Shaw
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If you want to check yourself, then extract the jar file and then do a search on the extracted folder.

regards,
Vishal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic