This discussion is archived
13 Replies Latest reply: Sep 2, 2010 2:23 PM by jschellSomeoneStoleMyAlias RSS

Exception in thread "main" java.lang.NoClassDefFoundError

843810 Newbie
Currently Being Moderated
Exception in thread "main" java.lang.NoClassDefFoundError: Hello

is anyone can please help me with this error?

i have done PATH, SETPATH, Environmental Variables and no matter in which folder and where i try to run a simple java prg. this is what i always get:
Exception in thread "main" java.lang.NoClassDefFoundError: Hello


here how i compile:

C:Program Files\Java\jdk1.5.0\bin\Programsource\javac Hello.java
where Programsource is the directory where I put my programs

and here how i try to run it:

C:\Program Files\Java\jdk1.5.0\bin\Programsource\java Hello

and here what i get:

Exception in thread "main" java.lang.NoClassDefFoundError: Hello