Title: jdk118 under Redhat6.0

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

Reply via email to