I am writing a Java project, with public static void main in ClassMain class and somehow get this NoClassDefFoundError (before, evereything worked correctly).
java.lang.NoClassDefFoundError: ClassMain
Caused by: java.lang.ClassNotFoundException: ClassMain
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"
I found something at Bug ID: 6434149 (cl) ClassLoader.loadClass() throws java.lang.ClassNotFoundException: [Ljava.lang.String; in JDK 6.0 but I do not know where to change this -Dsun.lang.ClassLoader.allowArraySyntax=true I am using Eclipse.
Any help please?