If you don't set casspath,
.java_wrapper will auto find the classes.zip itself and you could run
hello.class because your current dir contains it; if you do then they assume
that every classes should be included in classpath;
solution: if you do set classpath then use --classpath
$CLASSPATH:<path to hello.classs>
Steve
-----Original Message-----
From: Anupama Jayathilake <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, May 26, 1999 7:25 PM
Subject: CLASHES IN CLASSPATHI got a problem.Please advice me.I have installed jdk-1.1.6v2 sucsesfully (glibc architecture) on RedHat Linux 5.2 through
X windows as root. Without setting CLASSPATH variable in any account it works properly.
Now I want to set CLASSPATH envirenment variable (The reason is I want to set oracle
classes111.zip). I include this line CLASSPATH=/usr/share/jdk-1.1.6v2/lib/classes.zip in
.bash_profile (in java user account).In this path I can see that this file is available.
Then I relogged with this new profile. I can compile Hello.java but I cannot run it.
It gives "cannot find hello.class" massage but the hello.class is there.
Basically when I set CLASSPATH I cannot do anything. If I unsets CLASSPATH it works.
Please help me.