Print at Dec 15, 2025, 7:20:47 PM View all posts in this thread on one page
Posted by dkaparis at Aug 16, 2022, 3:32:15 PM
Error exporting SVG
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:


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

Posted by Puybaret at Aug 16, 2022, 6:34:09 PM
Re: Error exporting SVG
This looks like a packaging issue. Use the official release available at Download page.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by dorin at Aug 17, 2022, 8:20:26 AM
Re: Error exporting SVG
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

Posted by dkaparis at Aug 17, 2022, 9:43:09 PM
Re: Error exporting SVG
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.