File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes clspath doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "clspath doubt" Watch "clspath doubt" New topic
Author

clspath doubt

Roopam Samal
Greenhorn

Joined: Oct 08, 2013
Posts: 22
Hello everyone
If i'm importing any classfile present in
the package other than java.lang say for example
java.io.File,then when i use javac to compile then
compiler should search for "java" package in classpath
mentioned
.My environment variable is
C:\Program Files\Java\jdk1.5.0_06\bin so compiler should
search for the "java" packge in C:\Program Files\Java\jdk1.5.0_06\bin
directory and in this directory there is no java folder so
How is the things working???



thanks in advance
with regards
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18874
    
  40

Roopam Samal wrote:Hello everyone
If i'm importing any classfile present in
the package other than java.lang say for example
java.io.File,then when i use javac to compile then
compiler should search for "java" package in classpath
mentioned
.My environment variable is
C:\Program Files\Java\jdk1.5.0_06\bin so compiler should
search for the "java" packge in C:\Program Files\Java\jdk1.5.0_06\bin
directory and in this directory there is no java folder so
How is the things working???



The java.io package is part of the rt.jar file, which is located in the standard bootstrap classpath area. Since, it is unlikely that you changed the bootstrap class path, it should be located in the lib directory of where the JVM is installed.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
GeeCON Prague 2014
 
subject: clspath doubt