Joined: Jan 26, 2012
Post Count: 5
Status:
Offline
creating jar file
Hi! I would like to create jar file for online version. I use eclipse and I export it in jar file. Which packages and resources must I use that the applet will work properly? If I use only ones that I found in online jar from sweethome page I get only blue-grey scrren. That file is around 2.7MB. But if I add all resources in io package I get 6.8MB and than works fine. How can I create jar file that is not biger than 3MB and io package would work properly? Thanks for answering
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: creating jar file
There's no miracle, it works with the larger jar file because it must include the catalog items needed in the applet, while the catalog of Sweet Home 3D Online applet references only models and textures stored on sweethome3d.com. This doesn't change that much the total amount of downloaded info, but a smaller initial download will help to start the applet faster. As I don't know how you built your file, it's difficult to help you. In case you didn't notice, the following threads may help you: - Deploying SweetHome3D, to be embeded in webpage - How to import furniture in Applet. Studying the applet target in Ant build.xml might help you too.
By the way, it would be nice to explain why you're trying to create an online version.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator