Originally posted by nicholas lee: ...I still recieve the error
exception in thread "main" java.lang.NoClassDefFoundErorr: myfirstapp
This is a different error than the first (which ended in "/class"). Check to make sure that:
You first changed to the directory that contians the .java and .class files (using the command cd followed by the directory -- for example: cd c:\myJava\tests), and...
A compiled .class file is actually in that directory (i.e., it compiled successfully), and...
The name of your file matches the exact case you are typing (for example, if your file is myFirstApp, then myfirstapp won't work).
Note: You should not have any need for a CLASSPATH variable at this point. Your PATH variable seems to be correct, because javac and java are recognized (giving you the errors).
Getting your system set up is one of the more difficult hurdles in beginning Java. But once you get past this, I think you'll find that the Command Prompt is your best bet for now.
nicholas lee
Greenhorn
Joined: Mar 29, 2006
Posts: 4
posted
0
Thank you all for you help. Setting the class path work out. I see now that the error registering was just letting me know that java could not find the class I defined.
Is there documentation I could find which would tell me more about the error messages java return?
hopefully in a few weeks, I'll be the one responding instead of posting.