nova47
October 20th, 2010, 11:01 AM
I'm working in a group for a project so naturally we have set up CVS. During the course of our work and over several different projects CVS seems to enjoy vomiting on itself and randomly displaying a red ! next to our project name. After this occurs whenever any of us, on any machine, try to run our project the Java Virtual Machine Launcher displays an error pop up saying Could not find the main class: Main. Program will exit. (The main method is in a class I called Main.) And of course it prints the following out to stderr:
java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"
There doesn't seem to be any rhyme or reason we just go to bed, wake up, and it's there. If we copy and paste all our classes to a local folder it works just fine so it is not an issue with code it is something with CVS. Oddly enough sometimes it will just go away randomly. We haven't been able to figure out what the cause of either the problem or it randomly fixing itself is. Any ideas?
java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"
There doesn't seem to be any rhyme or reason we just go to bed, wake up, and it's there. If we copy and paste all our classes to a local folder it works just fine so it is not an issue with code it is something with CVS. Oddly enough sometimes it will just go away randomly. We haven't been able to figure out what the cause of either the problem or it randomly fixing itself is. Any ideas?