Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Exception in thread "main" !

Hi guys, i am very new to Java aswell as to this forum this is my first post.

I hope someone can help me here.

when trying to run a simple HelloWorld program i get an error

exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld

javac HelloWorld.java works fine, it compiles
but java HelloWorld doesnt run what can i do to fix this?

I've put HelloWorld.java and HelloWorld.class in C:\Tests, and i run it from that directory using Notepad++

any help would be welcome.

oh and i forgot this problem started after i installed Quicktime.
[619 byte] By [-Eduu] at [2007-11-11 7:40:47]
# 1 Re: Exception in thread "main" !
I can't see how quicktime can be the culprit here (having messed up the path to the java/javac ?) cause the error message is from the Java VM. You should post your code here (I am betting on a typo or package error... ).
sjalle at 2007-11-11 22:37:36 >
# 2 Re: Exception in thread "main" !
The most reasonable solution is to set classpath correctly.
You can also use IDE,for example jcreator LE(free) to execute.
jetbrains at 2007-11-11 22:38:41 >