Denmark
Joined: May 16, 2014
Post Count: 7
Status:
Offline
Re: How to install SweetHome 3d on website
Hallo, I would also like to install SH3D online, I installed the Viewer sucessfully. I don't really understand which source codes I need to compare. Where is the source code of the online version? Sorry if my question was unqualified...I really tried to figure out! I work with java and eclipse, but I am still a beginner I guess. Greetings Susanne
France
Joined: Nov 7, 2005
Post Count: 9141
Status:
Offline
Re: How to install SweetHome 3d on website
The source code of Sweet Home 3D, the online version and the viewer are in the same project available here.
To build the jar files of the online version, select the file build.xml and choose Run > External Tools > External Tools Configurationā¦ menu item in Eclipse. In the dialog that opens, select the target named applet in the Targets tab, and select a JDK (not a JRE) in the JRE tab, then click on Run. As explained in README.TXT file, note that you'll need first to create or retrieve a keys.keytool file to sign the applet jars (this keystore file will have to be named keys.p12 in the coming version).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
Denmark
Joined: May 16, 2014
Post Count: 7
Status:
Offline
Re: How to install SweetHome 3d on website
Great! It works! Thank you again! I have one extra question, is it somehow possible to add an extra plug-in to this online version? I want to demonstrate a really small plug-in for an exam next week.
France
Joined: Nov 7, 2005
Post Count: 9141
Status:
Offline
Re: How to install SweetHome 3d on website
is it somehow possible to add an extra plug-in to this online version?
Yes, but I didn't try it for a while. See pluginURLs in SweetHome3DApplet javadoc. As there's no menu in the applet, keep in mind that you should set plug-in small icon to get an access to it in the tool bar.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
Joined: Aug 25, 2014
Post Count: 5
Status:
Offline
Re: How to install SweetHome 3d on website
Hi! Compiled and signed files, After uploading files on site i got error: JNLPSigningException Failed to validate signing of launch file. The signed version does not match the downloaded version.
France
Joined: Nov 7, 2005
Post Count: 9141
Status:
Offline
Re: How to install SweetHome 3d on website
For security reasons, Oracle now recommends (and might obliges one day) to include the APPLICATION.JNLP file of the applet in its main jar. That's the main change I performed in Sweet Home 3D applet version 4.4 (see diff with version 4.3 here). So, if you want to change the libraries you need in your version of the applet, you'll have to update the file SweetHome3DApplet.jnlp found in deploy subfolder, then update jnlp_embedded parameter and jars variable in SweetHome3DApplet.html.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer