Hi
  I just installed jdk1.2.2 RC4 and I am having trouble running a 
simple program. I can compile the program HelloWorldApp.java, but 
running the program results in the error at the bottom of the page. I 
think I installed according to the directions in the readme, but 
something is wrong.  I have set and unset the CLASSPATH environment 
variable, but I cannot find the file classes.zip.
I am running redhat 6.1 with glibc-2.1.2-11 and kernel-2.2.12-20.

Can someone kindly help me figure out what is wrong?

TIA
Clyde

Info I think you might need to help me:

PATH=/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/jdk1.2.2/bin:
JAVA_HOME=/usr/local/jdk1.2.2


  ** My little program -HellowWorldApp.java
  * The HelloWorldApp class implements an application that
  * simply displays "Hello World!" to the standard output.
  */
class HelloWorldApp {
     public static void main(String[] args) {
         System.out.println("Hello World!"); //Display the string.
     }
}


$ javac -verbose HelloWorldApp.java
[parsed HelloWorldApp.java in 599 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/lang/Object.class) in 54 ms]
[checking class HelloWorldApp]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/lang/String.class) in 24 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/io/Serializable.class) in 1 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/lang/Comparable.class) in 1 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/lang/System.class) in 14 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/io/PrintStream.class) in 8 ms]
[loaded 
/usr/local/jdk1.2.2/jre/lib/rt.jar(java/io/FilterOutputStream.class) 
in 2 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/io/OutputStream.class) in 2 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/io/IOException.class) in 1 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/lang/Exception.class) in 1 ms]
[loaded /usr/local/jdk1.2.2/jre/lib/rt.jar(java/lang/Throwable.class) in 5 ms]
[wrote HelloWorldApp.class]
[done in 1525 ms]


$ java  HelloWorldApp.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class

-- 
Pray to God, But Hammer Away
     - Spanish Proverb
           Clyde Jones

Clyde Jones
Http://www.geocities.com/clyde-jones
mailto:[EMAIL PROTECTED]
Cell 443.226.6054

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to