We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › SVG Application Export problem
Page Index Toggle Pages: 1
SVG Application Export problem (Read 843 times)
SVG Application Export problem
Feb 20th, 2007, 2:16am
 
I'm starting to work with SVG's in my sketches and have been using the Candy library.  I've used the code from:

http://processing.org/reference/libraries/candy/SVG.html

to get started and it works great, however there is one small problem.  I need to export this as an application and when I do, the code on that page does not work (it's an OS X app).  In my console logs for OS X I get this error when I run it:

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: processing/xml/XMLElement
at processing.candy.SVG.<init>(SVG.java:157)
at sketch_070219a.setup(sketch_070219a.java:9)
at processing.core.PApplet.handleDisplay(PApplet.java:1281)
at processing.core.PGraphics.requestDisplay(PGraphics.java:564)
at processing.core.PApplet.run(PApplet.java:1450)
at java.lang.Thread.run(Thread.java:613)

I'm not sure what that means.  Anyone have any idea how I can use the Candy SVG libraries in an application export?
Re: SVG Application Export problem
Reply #1 - Feb 20th, 2007, 3:18am
 
you need to also import the xml library (import library -> xml) when exporting applications that use candy. was unfortunately omitted from the current version of the documentation but has already been fixed for the next round.
Page Index Toggle Pages: 1