SVG export fails

This topic has been viewed 12747 times and has 13 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
ggrptr
Posts: 8
Joined: Tue Mar 04, 2014 10:44 pm

SVG export fails

Post by ggrptr »

Hi!

I can't get svg export to work on windows7 (x64) (oracle java version 7). I get this exception:

java.lang.ClassNotFoundException: Class org.freehep.graphicsio.svg.SVGGraphics2D
at com.eteks.sweethome3d.tools.ExtensionsClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.eteks.sweethome3d.tools.ExtensionsClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)


I tried to add lib/freehep-vectorgraphics-svg-2.1.1b.jar to jars in the html source, but it still doesn't work.

Can somebody help me to fix it?

Thanks!
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: SVG export fails

Post by Puybaret »

I tried to add lib/freehep-vectorgraphics-svg-2.1.1b.jar to jars in the html source, but it still doesn't work.
Why would you add something which is already included with the program??? I feel you can't be helped if you don't tell us what you try to do and how you did it?
Emmanuel Puybaret, Sweet Home 3D creator
ggrptr
Posts: 8
Joined: Tue Mar 04, 2014 10:44 pm

Re: SVG export fails

Post by ggrptr »

So, i simple view (over an apache server) the html page from the deploy folder, which containing the applet (after enable the svg export) . But the "export to svg" menu option throws a java.lang.ClassNotFoundException: Class org.freehep.graphicsio.svg.SVGGraphics2D exception. I thought that it helps to add lib/freehep-vectorgraphics-svg-2.1.1b.jar to jars list, but it doesn't. Sorry, but java isn't my strong suit, but i need this applet. In the eclipse debug it works. What do i wrong?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: SVG export fails

Post by Puybaret »

Reading SweetHome3DApplet documentation would have given you the answer: set enableExportToSVG parameter to true.
Emmanuel Puybaret, Sweet Home 3D creator
ggrptr
Posts: 8
Joined: Tue Mar 04, 2014 10:44 pm

Re: SVG export fails

Post by ggrptr »

If it were not true, don't see the option. A more constructive reply?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: SVG export fails

Post by Puybaret »

If it were not true, don't see the option.
Maybe, my English gets rusty, but I don't understand what you mean.
A more constructive reply?
A nicer reply from you would be really appreciated! I'm ok to help and I helped you. If you don't want it, help yourself, it's open source! By the way, explaining why you "need this applet" would be appreciated because sharing experiences is a part of the open source world too.
Emmanuel Puybaret, Sweet Home 3D creator
ggrptr
Posts: 8
Joined: Tue Mar 04, 2014 10:44 pm

Re: SVG export fails

Post by ggrptr »

So, sorry for my english, i'm am in hurry with the last message, and I dont speak english, it's wery difficult to me.. What I tried to say: If i can start the export, I obviously that I allowed it, no? It's not too difficulty, sorry. Can you show me a working applet with SVG export function, or it does't work at all?
ggrptr
Posts: 8
Joined: Tue Mar 04, 2014 10:44 pm

Re: SVG export fails

Post by ggrptr »

After enabling the export, it throws this exception:

basic: JNLP2ClassLoader.findClass: com.eteks.sweethome3d.model.LengthUnit_hu: try again ..
basic: JNLP2ClassLoader.findClass: com.eteks.sweethome3d.model.LengthUnit_hu: try again ..
basic: JNLP2ClassLoader.findClass: com.eteks.sweethome3d.model.LengthUnit_hu_HU: try again ..
basic: JNLP2ClassLoader.findClass: com.eteks.sweethome3d.model.LengthUnit_hu_HU: try again ..
basic: JNLP2ClassLoader.findClass: com.eteks.sweethome3d.swing.HomeTransferableList: try again ..
basic: JNLP2ClassLoader.findClass: org.freehep.graphicsio.svg.SVGGraphics2D: try again ..
basic: JNLP2ClassLoader.findClass: org.freehep.graphicsio.svg.SVGGraphics2D: try again ..
java.lang.NoClassDefFoundError: org/freehep/graphicsio/svg/SVGGraphics2D
at com.eteks.sweethome3d.swing.PlanComponent.exportToSVG(Unknown Source)
at com.eteks.sweethome3d.swing.HomePane.exportToSVG(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$38.call(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$38.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Class org.freehep.graphicsio.svg.SVGGraphics2D
at com.eteks.sweethome3d.tools.ExtensionsClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.eteks.sweethome3d.tools.ExtensionsClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: SVG export fails

Post by Puybaret »

I just try on the online version hosted on this server with no problem (the Export to SVG menu item appears only for logged in users). Did you sign freehep-vectorgraphics-svg-2.1.1b.jar?

By the way, it would be still nice to share here why you need Sweet Home 3D applet.
Emmanuel Puybaret, Sweet Home 3D creator
ggrptr
Posts: 8
Joined: Tue Mar 04, 2014 10:44 pm

Re: SVG export fails

Post by ggrptr »

At last I found it, the embedded jnlp file didn't conatined the right jars for the svg import. It was my fault, because I am inexperienced in this area ..

Now, I have another problem. I don't need funriture models, but only doors and windows. What furniture and texture catalogs contains these?

I downloaded the additionalFurnitureCatalog.zip, and it works, but in the catalog tree, the icons missed, replaced with a "missing image" icon..

What can I do with this?

Thank You!
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests