• 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

where are my j2SE classes?

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic