Portable version of Sweet Home 3D

This topic has been viewed 108207 times and has 32 replies
Thread status: Active
Test the features and bug fixes of future versions [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Portable version

Post by Puybaret »

Ce dossier ne contient que des fichiers temporaires qu'un bug dans la version de Java pour Windows empêche de supprimer à la fin du programme. Contourner ce bug qu'Oracle n'a pas l'air enclin à corriger est faisable sous Java 7 et beaucoup plus compliqué sous Java 6. Donc il faudra patienter encore quelques temps...
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Portable version

Post by Puybaret »

In the version 4.1 (119 MB), I found a way to delete the work folder and the temporary files it contains when the program ends normally, under Java 7 as well as in previous Java versions.

supseb, I hope this time you'll agree to qualify the new version as portable, even if the work folder will still be there after a program crash.
Emmanuel Puybaret, Sweet Home 3D creator
supseb
Posts: 34
Joined: Fri Jul 27, 2012 12:53 pm

Re: Portable version

Post by supseb »

Thanks a lot !
But (sorry for that), isn't it possible to move this work folder in the same directory as SweetHome ?

I'll post this new in the Liberkey forum.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Portable version

Post by Puybaret »

isn't it possible to move this work folder in the same directory as SweetHome ?
I chose to create by default the work folder in user home folder for performance reasons. Very often, portable versions are run on a USB key with poor performances at writing time.

Nevertheless if you absolutely want to move this work folder in the folder where portable executables are found, you should make the following changes:
- under Windows, add to the portable version installation folder the two files SweetHome3D-windows-x86.l4j.ini and SweetHome3D-windows-x64.l4j.ini containing the following text:

Code: Select all

-Dcom.eteks.sweethome3d.tools.temporarySubFolder="%EXEDIR%\work"
- under Mac OS X, edit the file SweetHome3D-macosx.app/Contents/Info.plist and add the following lines:

Code: Select all

<key>com.eteks.sweethome3d.tools.temporarySubFolder</key>
<string>$APP_PACKAGE/../work</string>
before the line that contains:

Code: Select all

<key>com.eteks.sweethome3d.deploymentInformation</key>

- under Linux, edit the command files SweetHome3D-linux-x86 and SweetHome3D-linux-x64 and add the following text between java and -Xmx option:

Code: Select all

-Dcom.eteks.sweethome3d.tools.temporarySubFolder="$PROGRAM_DIR"/work
If Liberkey or anyone else decides to distribute the portable version of Sweet Home 3D after changing this parameter or after removing the Mac OS X and Linux versions, they should add a README....TXT files describing these changes.
Emmanuel Puybaret, Sweet Home 3D creator
supseb
Posts: 34
Joined: Fri Jul 27, 2012 12:53 pm

Re: Portable version

Post by supseb »

Thanks a lot for your response, it helps me a lot !
susonne
Posts: 7
Joined: Fri May 16, 2014 10:06 am
Country: Denmark

Re: Portable version

Post by susonne »

I have one more question about adding a plugin to the portable version.
Do I just need to put the executable jar file of the plugin into the data/plugins directory?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Portable version

Post by Puybaret »

Do I just need to put the executable jar file of the plugin into the data/plugins directory?
Yes
Emmanuel Puybaret, Sweet Home 3D creator
susonne
Posts: 7
Joined: Fri May 16, 2014 10:06 am
Country: Denmark

Re: Portable version

Post by susonne »

ok. thank you for the reply. didn't worked this morning, but I will try again. :-)
susonne
Posts: 7
Joined: Fri May 16, 2014 10:06 am
Country: Denmark

Re: Portable version

Post by susonne »

Hi again,
I created 2 small plug-ins.
If I open them with the executable jar file of SH3D from inside eclipse everything works fine.
But if I put the jar files in the data/plugins folder of the portable version, SH3D freezes and doesn't open up.
If I take the jar files out of the folder again, the portable version opens up again.
What could that be?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Portable version

Post by Puybaret »

What do you mean by "freezes"? Do you see only the splash screen?
I tried again on my side and it worked with no problem.
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest