Uses CLASSPATH
to find and load the
core system classes.
On Windows 95:
CLASSPATH=/usr/java/lib/classes.zip:.
On Unix:
CLASSPATH=c:\java\lib\classes.zip
Unix Dynamic libraries, .dll
files, shared objects, and
.so
files are located by the PATH variable.
Side Effects:
The Win95 Autoexec.bat
file contains an outdated
CLASSPATH
variable set by a user or the installation of
other applications.
The WinNT User Environment contains an old CLASSPATH
variable.
The Unix .cshrc
, .profile
, or .login
scripts contains wrong CLASSPATH
.
The JAVA_HOME
environment variable is also used by programs
so check this is not set. You can clear this field in the Bourne
shell (sh) as follows: unset JAVA_HOME
Diagnostics:
Use the -classpath
option to force the Java VM to
use the command-line.CLASSPATH
only:
java -classpath c:\java\lib\classes.zip;. myapp