NoClassDefFoundError: processing/core/XML
in
Core Library Questions
•
1 year ago
I searched for instructions but I don't found. anyone know the solution?
"NoClassDefFoundError: processing/core/XML"
Processing ver 2.0b3
Java 7
Problem:
- Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: processing/core/XML
- at geomerative.RSVG.toShape(RSVG.java:126)
- at geomerative.RG.loadShape(RG.java:242)
- at Tutorial_09_HelloBot_svgToGroup.setup(Tutorial_09_HelloBot_svgToGroup.java:34)
- at processing.core.PApplet.handleDraw(PApplet.java:2103)
- at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190)
- at processing.core.PApplet.run(PApplet.java:2006)
- at java.lang.Thread.run(Thread.java:662)
- Caused by: java.lang.ClassNotFoundException: processing.core.XML
- at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
- ... 7 more
Code:
- import geomerative.*;
- RShape shp;
- void setup(){
- size(800, 600);
- smooth();
- // VERY IMPORTANT: Allways initialize the library before using it
- RG.init(this);
- shp = RG.loadShape("tiger.svg");
- shp = RG.centerIn(shp, g);
- }
- void draw(){
- background(255);
- translate(mouseX, mouseY);
- RG.shape(shp);
- }
1