|
Trouble in Runing
Hi everyone,
i am using NetBeans for writing the program . the program is executing in the netbeans but when i try with the command prompt it is getting compiled but while running it is throwing Exceptions, can any one plz tell me how to fix this problem.
the Exceptions is
C:\Documents and Settings\e415684\My Documents\NetBeansProjects\JavaApplication1
\src\javaapplication1>java example
Exception in thread "main" java.lang.NoClassDefFoundError: example
Caused by: java.lang.ClassNotFoundException: example
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
|