Romania
Joined: Apr 24, 2014
Post Count: 555
Status:
Offline
Re: Categories
1. When I've ask you "what you use" I mean the official linux installer version from here. I've verified again to be sure if I've miss something and I don't find any flatpack, appimage or whatever. 2. Like I've said already, until you don't use the official installer and installed as official instructions, I can't help you. 3. You are free to experiment with whatever you want but you will be mostly alone. Generally I don't get why some users prefer the hard way but this is not my job.
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law (Greer's Third Law) When all else fails, read the instructions.Murphy's Law
Netherlands
Joined: Apr 8, 2022
Post Count: 789
Status:
Offline
Re: Categories
What Linux distribution do you use?
On my Debian/Mate system I have this: /your-directory-somewhere/SH3D/SweetHome3D-7.1 where the Sweet Home 3D 64 .tgz download is extracted. After extracting the .tgz in that directory there are subdirectories runtime/bin where the Java runtime resides.
I use the Sweet Home 3D startup script SweetHome3D-Java3D-1_5_2 which looks like this:
#!/bin/sh
# Retrieve Sweet Home 3D directory PROGRAM=`readlink "$0"` if [ "$PROGRAM" = "" ]; then PROGRAM=$0 fi PROGRAM_DIR=`dirname "$PROGRAM"`
# Run Sweet Home 3D exec "$PROGRAM_DIR"/runtime/bin/java -Duser.name=Keet -Xmx6g -classpath "$PROGRAM_DIR"/lib/SweetHome3D.jar:"$PROGRAM_DIR"/lib/Furniture.jar:"$PROGRAM_DIR"/lib/Textures.jar:"$PROGRAM_DIR"/lib/Examples.jar:"$PROGRAM_DIR"/lib/Help.jar:"$PROGRAM_DIR"/lib/batik-svgpathparser-1.7.jar:"$PROGRAM_DIR"/lib/jeksparser-calculator.jar:"$PROGRAM_DIR"/lib/iText-2.1.7.jar:"$PROGRAM_DIR"/lib/freehep-vectorgraphics-svg-2.1.1c.jar:"$PROGRAM_DIR"/lib/sunflow-0.07.3i.jar:"$PROGRAM_DIR"/lib/jmf.jar:"$PROGRAM_DIR"/lib/j3dcore.jar:"$PROGRAM_DIR"/lib/j3dutils.jar:"$PROGRAM_DIR"/lib/vecmath.jar:"$PROGRAM_DIR"/lib/jnlp.jar -Djava.library.path="$PROGRAM_DIR"/lib:"$PROGRAM_DIR"/lib/yafaray -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer com.eteks.sweethome3d.SweetHome3D -open "$1"
This is the original script where I have added "-Duser.name=Keet" and set the memory usage to 6Gb with "-Xmx6g". The default script SweetHome3D should work the same.
For the Furniture Library Editor I have created this script in the same directory as the SweetHome3D-Java3D-1_5_2 script:
#!/bin/sh # Retrieve Sweet Home 3D directory PROGRAM=`readlink "$0"` if [ "$PROGRAM" = "" ]; then PROGRAM=$0 fi PROGRAM_DIR=`dirname "$PROGRAM"`
As you can see I have created a directory 'tools' in the SH3D directory I use for the Sweet Home 3D installation. In that directory I have the various versions of the Furniture and Texture Library Editor .jar files. (You don't have to add the -Duser,name=?? to the script. I do that so it overrules the linux username that is otherwise used in .sh3d files. It's a security/privacy thing.)
With this setup Sweet Home 3D and the Furniture Library Editor use the same Java runtime in the runtime/bin directory. Of course I did the same for the TextureLibraryEditor.
You already know how to create the menu-items. I don't use these because I always work from the file manager. After a new install I right-click a .sh3d file and select the 'Open with other application' option. Then I browse to the SweetHome3D-Java3D-1_5_2 script and select that. On Debian/Mate I have the checkbox 'Remember ...' which makes the choice the default for .sh3d files. From now on I can just double-click on any .sh3d file and it will start Sweet Home 3D with that project. You can do the same for library files and of course for another version of Sweet Home 3D like the beta.
Belgique
Joined: Aug 17, 2023
Post Count: 82
Status:
Offline
Re: Categories
Yes I understood but I forgot I also installed a Flatpack from my repository. I really thought I'm using the official Linux installer. I tested this official installation and it crashed too, even using its own Java version because it has its Runtime folder.
Netherlands
Joined: Apr 8, 2022
Post Count: 789
Status:
Offline
Re: Categories
The script for the Furniture Library Editor I offered is meant to open a library using a double-click in the file manager. If you want to use the script to just start the editor remove the part -open "$1" from the last line. (If you use the script as is and run it directly it tries to open the library passed by the $1 command line parameter. Since there is no such parameter the 'file' is invalid.)