High priority Adding external jar file

This topic has been viewed 4564 times and has 1 replies
Thread status: Active
Questions about Sweet Home 3D installation [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
ams.amila
Posts: 1
Joined: Mon Feb 02, 2015 10:38 am

Adding external jar file

Post by ams.amila »

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?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Adding external jar file

Post by Puybaret »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest