Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I find out what classes are available to the compiler on a classpath  RSS feed

 
Ric Luper
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running code on

http://www.cafeconleche.org/books/xmljava/chapters/ch06s02.html

My compiler tells me




How can I add

SAX2 driver class org.apache.xerces.parsers.SAXParser


to the classpath.Im using OSX version 1.39 with default classpath.
 
Junilu Lacar
Sheriff
Posts: 11152
160
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.jarhoo.com is good way to find what jar contains a class. Then download the jar and add it to your classpath.
 
Richard Anderson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is also an Eclipse plugin that I use frequently for this:

Jar Class Finder
 
Ric Luper
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will these tell me whats on my machine?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!