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.

[1545 byte] By [jake225] at [2007-9-30 16:50:10]
# 1
By the looks of it, everything seems fine. What kind of CPU do you have? is it by anychance a 64-bitprocessor? If so, you may not have the right JRE for your laptop and you may need the special 64-bitcompatible JREs for AMD64/Itanium.
afarmand at 2007-7-6 13:02:37 > top of Java-index,Administration Tools,Sun Connection...
# 2
tryjava -classpath . Helloand see this for more information on the classpath: http://mindprod.com/jgloss/classpath.htmlMike
korcynsm at 2007-7-6 13:02:37 > top of Java-index,Administration Tools,Sun Connection...
# 3
I have a Dell with Intel Pentium 4 CPU 2.40GHz processors.I don't believe these are 64 bit?
jake225 at 2007-7-6 13:02:37 > top of Java-index,Administration Tools,Sun Connection...
# 4
Mike This worked, but I don't know why, even reading the linked info
jake225 at 2007-7-6 13:02:38 > top of Java-index,Administration Tools,Sun Connection...
# 5

> Mike

> This worked, but I don't know why, even reading the

> linked info

You're ready for the "official" Sun documentation, then

[url http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html]Setting the class path[/url]

[url http://java.sun.com/j2se/1.4.2/docs/tooldocs/findingclasses.html]How Classes are Found[/url]

ChuckBing at 2007-7-6 13:02:38 > top of Java-index,Administration Tools,Sun Connection...
# 6
I like your post ChuckBing:-)
Martin3 at 2007-7-6 13:02:38 > top of Java-index,Administration Tools,Sun Connection...