Error exporting SVG

This topic has been viewed 4598 times and has 3 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
dkaparis
Posts: 2
Joined: Wed Aug 03, 2022 10:47 am

Error exporting SVG

Post by dkaparis »

Greetings,

Using Sweet Home 3D 7.0.2 under Archlinux and OpenJDK Runtime Environment (build 11.0.16+8). When I select the Plan->Export to SVG Format command and specify file, I get the following dump on terminal:

Code: Select all

java.lang.NoClassDefFoundError: org/freehep/graphicsio/svg/SVGGraphics2D
	at com.eteks.sweethome3d.swing.PlanComponent.exportToSVG(Unknown Source)
	at com.eteks.sweethome3d.swing.PlanComponent.exportData(Unknown Source)
	at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.exportData(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.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ClassNotFoundException: org.freehep.graphicsio.svg.SVGGraphics2D
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 13 more
The produced file is zero size.

Could this be a packaging issue? Any ideas how to diagnose further?

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

Re: Error exporting SVG

Post by Puybaret »

This looks like a packaging issue. Use the official release available at Download page.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Error exporting SVG

Post by dorin »

I use official version (from download page) under linux (debian).
Running SweetHome3D & SweetHome3D-Java3D-1_5_2 it's OK (produce the expected svg result).

I receive the same error (in terminal & 0 size file) ONLY when I use nimbus.
(-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel)
Maybe is not the only one issue under this settings.

With SweetHome3D-6.6 all work OK.
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
dkaparis
Posts: 2
Joined: Wed Aug 03, 2022 10:47 am

Re: Error exporting SVG

Post by dkaparis »

This looks like a packaging issue. Use the official release available at Download page.
When running the downloaded jnlp version on the same system with javaws, the SVG export works without error.

I filed a bug report at https://bugs.archlinux.org/task/75632.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests