at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
Eclipse was running running fine, but now I get this error every time I try to compile:
Code :
Exception in thread "main" java.lang.NoClassDefFoundError: DrawConnect4
Caused by: java.lang.ClassNotFoundException: DrawConnect4
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: DrawConnect4. Program will exit.
This is for all my classes.
Ubuntu 10.10
PLease Help. I am new to eclipse (and fairly new to java and GNU/Linux).
Re: at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
The JVM cannot find the class DrawConnect4 - make sure it is in your project or the library that contains the class is on your classpath.
Re: at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
All the classes disappeared when I started getting that error - I thought it created the classes when it ran the java files? Or as it went along, as I could also run them from the terminal, but never compiled them since I started using eclipse. Thing is this is due in tomorrow, so I dont have time to learn how it works :). Is also imports a file the normal compiler (though terminal) cant get and I dont have time to fix.
Re: at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
Helping one with their IDE remotely like this is difficult, as there are so many details involved as to where the source files are, if they were imported, what type of project you are working from, etc...for what its work go to the project menu and make sure Build Automatically is checked. If you have a deadline and not time to troubleshoot then use what works - if the command line worked before go with that.
Re: at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
The command line doesnt work - thats why I am using eclipse. Eclipse suddenly doesnt work...
Re: at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
Build automatically was not selected, but how I have selected it, it looks right. I still get the error though. Anything else I would need to do?
Re: at java.net.URLClassLoader$1.run(URLClassLoader.java: 217) Eclipse
Works now, Thank you! (And I set the classpath so my terminal works in Ubuntu too :)) )