JProfiler
Get rid of your performance problems and memory leaks!
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of JBoss AS 5 Development this week in the JBoss forum
or Spring Dynamic Modules in Action in the Spring forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Java in General
 
RSS feed
 
New topic
Author

where are my j2SE classes?

James Byars
Ranch Hand

Joined: Apr 15, 2009
Messages: 33

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
Bartender

Joined: Sep 28, 2004
Messages: 9549


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

Henry

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
James Byars
Ranch Hand

Joined: Apr 15, 2009
Messages: 33

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
Bartender

Joined: Sep 28, 2004
Messages: 9549

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

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
James Byars
Ranch Hand

Joined: Apr 15, 2009
Messages: 33

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
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Java in General
 
RSS feed
 
New topic
Money Mgt Calculator