I 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.
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.