This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Package
Posted by Parthipan Satchi on July 26, 2001 at 7:11 PM
I have the following questions: 1) How does JVM access the standard packages like java.util ? does CLASSPATH have to be defined for it to use these packages? 2) In UNIX we can define CLASSPATH by "setenv CLASSPATH Directory" In DOS we can put CLASSPATH = directory in autoext.bat Is this correct 3) If CLASSPATH is defined then what does the following line do? package mypackage; Let's assume the class name is Example. Then, does it create a package named mypackage and include the Class file example.class as part of mypackage. If so how do we execute the class file that is part of mypackage?
Replies:
|