NoClassDefFoundError
Plzz help me regarding this problem.
i created a file called HelloWorldApp.java Which contained the following
/**
* The HelloWorldApp class implements an application that
* simply displays "Hello World!" to the standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
this is located inC:\j2sdk1.4.2_11\bin>
in compilation
C:\j2sdk1.4.2_11\bin>javac HelloWorldApp.java
C:\j2sdk1.4.2_11\bin>java HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
i found the above error, so cosidering it to be an error due to classpath i did the following
C:\j2sdk1.4.2_11\bin>set CLASSPATH=C:\j2sdk1.42_11\bin
C:\j2sdk1.4.2_11\bin>java HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
STILL I AM GETTING THE SAME ERROR
CAN ANY BODY PLZ HELP ME WITH THIS

