Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

807599Mar 13 2007 — edited Mar 13 2007
I installed jdk 1.5 on my windows XP SP2 system and tried to run a simple program:
public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello world!!");
	}
}	
but i get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Hello/java

I've set the classpath as:
CLASSPATH=C:\Java\jdk1.5.0_09\lib;

and path variableas:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;%SYSTEMROOT%\system32\WBEMC:\PROGRA~1\COMMON~1\AUTODE~1;C:\Java\jdk1.5.0_09\bin;c:\j2sdkee1.3.1\bin;c:\Java\jdk1.5.0_09\lib;

I didn't have this problem when i was using SP1 of windows xp...
Plz help!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2007
Added on Mar 13 2007
2 comments
84 views