Print at Dec 18, 2025, 12:37:42 PM View all posts in this thread on one page
Posted by ams.amila at Feb 2, 2015, 10:59:06 AM
Adding external jar file
Hi Puybaret,

I'm using your amazing program inside my web application as a design tool. It works well and I need to use external library inside your application (JAR file). The problem is after I deploy application as applet (build successfully) there is an "NoClassDefFound" exception occurred on runtime. I used build.xml file you provided. Can you explain Why this happen?

Posted by Puybaret at Feb 5, 2015, 6:33:01 PM
Re: Adding external jar file
If you want to include the library (like batik-svgpathparser-1.7.jar) in the SweetHome3D.jar itself to get a Java application you can launch with a double-click, you should add it to the list of libraries that need to be extracted at program launch, like in SweetHome3DBootstrap.
If the library you use contains classes with callbacks, you should also add the first part of their package(s) in applicationPackages array.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator