Jre 1.7 - Java Version - Returns: Java/Lang/Noclassdeffounderror: Java/Lang/Object

Java: NoClassDefFoundError and looked & tried the solutions of the similar questions

I think the problem is because of spaces in the path to rt.jar file.

Try surrounding it with doublequotes as below:

java -Xbootclasspath:"C:/Program Files (x86)/Java/jdk1.6.0_35/jre/lib/rt.jar";jar/batik-all.jar;jar/xml-apis-ext.jar -javaagent:target/javacg-0.1-SNAPSHOT-dycg-gent.jar="incl=org.apache.batik.*,org.w3c.*;" -jar dacapo-9.12-bach.jar batik

Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)

Go to Eclipse folder, locate eclipse.ini file, add following entry (before -vmargs if present):

-vm
C:\Program Files\Java\jdk1.7.0_10\bin\javaw.exe

Save file and execute eclipse.exe.



Related Topics



Leave a reply



Submit