View Single Post
  #1 (permalink)  
Old 05-12-2008, 12:06 PM
kavithaprabhaker kavithaprabhaker is offline
Member
 
Join Date: May 2008
Posts: 6
kavithaprabhaker is on a distinguished road
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)
Reply With Quote
Sponsored Links