File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes .jar file question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark ".jar file question" Watch ".jar file question" New topic
Author

.jar file question

Chris Staten
Ranch Hand

Joined: Sep 24, 2004
Posts: 101
If I know what class or package I need for a program, how do I find out what jar file that class is in? I'm not so worried about the classes from Sun, but what about other vendors like Oracle?
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
I think you pretty much have to google it. But if a program you're installing needs a third-party class, it will probably state in the installation guide/manual/README/whatever which jars it requires.

Yuriy
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

The site www.jarhoo.com is a kind of Google for class files. Try it!


[Jess in Action][AskingGoodQuestions]
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
A paid Google....
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Originally posted by Yuriy Zilbergleyt:
A paid Google....




Sorry. I've never used the site myself; I did try it when it first came out, and I occasionally recommend it based on that one experience. I had no idea it had become subscription-only!
Chris Staten
Ranch Hand

Joined: Sep 24, 2004
Posts: 101
Yeah, I went there to check it out and saw that it's a pay site. I don't have a problem with paying a few bucks if I really need the service. Although, right now I'm doing OK with un-jaring files and hunting for the class/package I need.

As for using google, well, I do that and all I can seem to come up with is the javadoc for the classes I need. As far as I can tell that still doesn't give me the .jar file that they can be found in.

Thanks for the suggestions though!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .jar file question
 
Similar Threads
Can useful files or other JARs appear in JAR?
jar file
Jar file
Base Directory
Problem running jar