Hi, I'm installing the Java developers kit for our users here, downloaded
from Digital's website. I installed it in /usr/local/JDK
According to the README, I did:
setenv CLASSPATH .:/usr/local/JDK/classes
setenv JAVA_HOME /usr/local/JDK
I also added /usr/local/JDK/bin to my PATH
Appletviewer works correctly.
Now, I want to use 'java' rather than 'appletviewer' to run java programs.
So I go into the demo directory to run a demo:
rati: [/usr/local/JDK/demo] % cd Clock/
rati: [/usr/local/JDK/demo/Clock] % ls
Clock2.class Clock2.java example1.html
rati: [/usr/local/JDK/demo/Clock] % java Clock2.class
Can't find class Clock2.class
Why does this happen?
The other problem is, I use Netscape 3.01 with Java enabled and the Java
classes are installed in /usr/local/lib/netscape. Now I can't use the JDK
and Netscape without having to change CLASSPATH each time. Is there a
workaround?
Thanks!
Chester Liu
cht_at_rati.pse.umass.edu
Received on Fri Jan 24 1997 - 22:42:17 NZDT