This week's book giveaway is in the Object Relational Mapping forum. We're giving away four copies of Pro JPA 2: Mastering the Java Persistence API and have Mike Keith and Merrick Schincariol on-line! See this thread for details.
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 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?
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.
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