I seem to have a system problem finding .class file
HERE IS A SIMPLE PROGRAM THAT WORKS ON MY DESKTOP BUT NOT THE LAPTOP......
*JDs First Program says "Hello Folks"*/
public class Hello {
public static void main (String [ ]args){
System.out.println("Hello Folks");
}
}
I am running my first simple program. It compiles on my Dell laptop and generates a .class file but doesn't execute. I get the error message below during the command prompt session. I have already done all the system changes that were specified in the System Path area (see below). This same code runs on my colleagues desk top with the same Java software version 1.4.2.
I realize there is a path error but don't know where else to look. Any conflicts?
THIS IS A COPY OF THE COMMAND PROMPT SESSION..........
C:\Java>javac Hello.java
C:\Java>java Hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
C:\Java>dir
Volume in drive C has no label.
Volume Serial Number is B47D-035A
Directory of C:\Java
09/02/2004 09:28 PM <DIR> .
09/02/2004 09:28 PM <DIR> ..
09/02/2004 09:55 PM 415 Hello.class
09/02/2004 08:12 PM 152 Hello.java
2 File(s) 567 bytes
2 Dir(s) 18,406,572,032 bytes free
THIS IS THE PATH ENTRY FOR SEARCH RULES.........
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Adaptec Shared\System;C:\j2sdk1.4.2_05\bin
I'm stumped.

