I ran the hello world program. It was able to compile but when I ran it I received the following message:"Exception in thread "main" java.lang.NoClassDefFoundError: Hello World " did I do something wrong?
Your class name is HelloWorld (all one word), right? You compiled "javac HelloWorld.java" ? You then typed "java HelloWorld" ? From the error message, it appears that you tried to split the class name into two words (i.e. java Hello World).
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
What subdirectory are you in when you compile? What subdirectory is your HelloWorld.java file in? What is your path set to? What is your classpath set to?
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
This is the settings that I have PATH=C:\windows;c:\windows\command;c:\jdk1.2\bin;C:\jdk1.2\jre\bin CLASSPATH=C:\jdk1.2\lib;.;C:\java I am still getting an error