java.lang.NoClassDefFoundError
Iam trying to run a Hello.java file as java application in eclipse iamgetting the below exception.
java.lang.NoClassDefFoundError: C:workspace\baseexample
Caused by: java.lang.ClassNotFoundException: C:workspace\baseexample
at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
Exception in thread "main"
please can someone help me with this.
Re: java.lang.NoClassDefFoundError
Quote:
Originally Posted by
nrao
please can someone help me with this.
Not until we see an SSCCE (that's a link) and exactly how you're trying to run the program.
You might want to give this a read: Setting the class path