I am using windows 7 platform i installed
java 6 and i am trying to compile a small java program producing an output helloworld! but when i try to run the program i am finding an exception saying NoClassDefFoundError
The error looks as below:
C:\Test>java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Caused by: java.lang.ClassNotFoundException: Test
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Test. Program will exit.
The program i pretty simple i am just printing Hellow World !!