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?
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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