File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where are my j2SE classes?

 
James Byars
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I am using jdk1.5.0_16

I am trying to find where exactly the .class files are. For example I can find my Servlet stuff in servlet-api.jar, but where can I find the classes for the regular J2SE stuff
 
Henry Wong
author
Marshal
Pie
Posts: 20835
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It should be in a jar file named rt.jar... in the jre/lib directory.

Henry
 
James Byars
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
It should be in a jar file named rt.jar... in the jre/lib directory.

Henry


Found it, many thanks Henry.

I have one more question please. I do not have this jar file in my CLASSPATH, yet my program is compiling. How is Java able to find these classes if they're not in my classpath?

thanks
 
Henry Wong
author
Marshal
Pie
Posts: 20835
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Byars wrote:
I have one more question please. I do not have this jar file in my CLASSPATH, yet my program is compiling. How is Java able to find these classes if they're not in my classpath?

thanks


There are certain directories (and jar files) that is always searched -- regardless of the classpath.

Henry
 
James Byars
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
James Byars wrote:
I have one more question please. I do not have this jar file in my CLASSPATH, yet my program is compiling. How is Java able to find these classes if they're not in my classpath?

thanks


There are certain directories (and jar files) that is always searched -- regardless of the classpath.

Henry


ah, brilliant, now it all makes sense to me. Many thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic