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
Collection to Stream to a New Collection
How Can Non-Ascii Characters Be Removed from a String
How to Read PDF Files Using Java
How Do Hashcode() and Identityhashcode() Work at the Back End
How to Catch Out of Memory Exception in Java
How to Use "." as the Delimiter with String.Split() in Java
Java - How Would I Dynamically Add Swing Component to Gui on Click
Why Do I Get Java.Lang.Abstractmethoderror When Trying to Load a Blob in the Db
Connect 4 Check for a Win Algorithm
Make Jackson Interpret Single JSON Object as Array with One Element
Spring Data JPA - How to Combine Multiple and and or Through Method Name
Does Polymorphism Apply on Class Attributes in Java
How to Access Owl Documents Using Xpath in Java
What's the Difference Between <> and <? Extends Object> in Java Generics