Normally saying "the program compiled" means it compiled successfully -- there were no errors. Or do you mean there were runtime errors (exceptions)?Originally posted by Greg Levine:
The program compiled, but didn't run. Six errors were found
This is what java would report if HellowWorld had failed to compile. If you list the files, do you see "HelloWorld.class"? If not, it didn't compile.I compiled HelloWorld.java with "javac HelloWorld.java" and that worked. Then I tried to run it with "java HelloWorld" and I received the following error:
"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"
So it did compile successfully, you were correct.Originally posted by Greg Levine:
What I meant was that no errors showed up when I called "javac MyProject.java".
Can you post the errors you received, or did you get the same "NoClassDefFoundError: MyProject" error?The errors only appeared when I called "java MyProject".
