aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 18101
    
  39

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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clspath doubt
 
Similar Threads
Need help in compiling programs
java on command
my first java program
how to find Java Server VM