Reputation: 98
When I run my program I get this:
Exception in thread "main" java.lang.NoClassDefFoundError: run/Run
Caused by: java.lang.ClassNotFoundException: run.Run
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
My project has never changed and this error has just started to arise. I've tried cleaning my workplace, deleting it, deleting the settings. Nothing is working, and nothing has changed in my workplace.
Upvotes: 0
Views: 79
Reputation: 3624
Pls take a look at if the classes already were created into /bin folder. And make sure you have set the correct JDK in library.
Upvotes: 0
Reputation: 6094
Check your Run Configuration editor, then check which class is going to be run, and edit it to put the right package name in.
I shouldn't admit it, but sometimes, the best solution in these cases is to create a new project and copy the packages by drag and drop.
Upvotes: 1