Does not put .class at the end of your line of command for execution.
So, to run your program, do simple:
java Clock2
this will work fine.
----------
From: Zhang Yuyong
Sent: terça-feira, 28 de dezembro de 1999 23:14
To: [EMAIL PROTECTED]
Subject: jdk118 under Redhat6.0
<<File: ATT00000.htm>>
hi everyone:
i used jdk118(glibc version) on redhat6.0, and i have already set my
JAVA_HOME envoirment variable to "/opt/jdk118_v1" , and CLASSPATH is
"/opt/jdk118_v1/lib/classes.zip:." .
in the directory /opt/jdk118_v1/demo/Clock, i can complier the source file
with "javac Clock2.java", but when i run it with "java Clock2.class", i get
an error "can't find class Clock2.class", what should i do?
any help will be appreciated!
thanks
the files in the /opt/jdk118_v1/demo/Clock lists as following:
-rwxr-xr-x 1 root root 5033 Dec 28 16:41 Clock2.class
-rwxr-xr-x 1 root root 8306 Dec 7 23:11 Clock2.java
-rwxr-xr-x 1 root root 1469 Dec 7 23:11 example1.html
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]