Using SH3D Portable's Java Files to Run the TLE & FLE

This topic has been viewed 5775 times and has 7 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
User avatar
T3NZ3N
Posts: 32
Joined: Tue Apr 21, 2020 3:39 pm
Country: 天下

Using SH3D Portable's Java Files to Run the TLE & FLE

Post by T3NZ3N »

In the documentation, I think it's mentioned that we can just run the TLE & FLE JARs from the Portable SH3D's own Java Files in it's own jre Directory.

I can't figure out how to set this up so I can run the TLE or FLE jar files from the files in the jre folder.

I'm running win10pro

The only executables with the java program Icon I found in the jre/windows/x64/jre8/bin were the javaw.exe

I tried simply dragging & dropping the jar to that and every other exe file in the bin, but nothing happened.

I currently have jportable in the Portable SH3D directory along with the Portable Launcher, but I'd like to try and see if there is a way to launch them directly without those, by using only the files in jre/windows/x64/jre8/bin

Additionally, I'm curious if the Portable SH3D Executable is just a Natively packaged Java File.

Thanks for any help
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by Puybaret »

The command to run a JAR file is:

Code: Select all

path/to/java.exe -jar executable.jar
(you may also use [font=courier new]javaw.exe[/font])
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
T3NZ3N
Posts: 32
Joined: Tue Apr 21, 2020 3:39 pm
Country: 天下

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by T3NZ3N »

How can I add that to the launch parameters of the jar?

and will it be dynamic, if the drive letter changes?
User avatar
T3NZ3N
Posts: 32
Joined: Tue Apr 21, 2020 3:39 pm
Country: 天下

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by T3NZ3N »

And when you say "I may use javaw.exe", what does that mean? How do I use it to make it do something.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by Puybaret »

I'm not sure you can change the launch parameters if java is not installed.
If you want to reuse the command you should rather store it in a .BAT file.
And when you say "I may use javaw.exe", what does that mean?
Simply replace [font=courier new]java.exe[/font] by [font=courier new]javaw.exe[/font] in the command I wrote.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
T3NZ3N
Posts: 32
Joined: Tue Apr 21, 2020 3:39 pm
Country: 天下

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by T3NZ3N »

would the batch file just look like this?

"E:/Portable Programs/3D Programs/SweetHome3D-6.3-portable/jre/windows/x64/jre8/bin/java.exe" -jar "E:/Portable Programs/3D Programs/SweetHome3D-6.3-portable/FurnitureLibraryEditor-1.25.jar"

that didn't work for me
User avatar
T3NZ3N
Posts: 32
Joined: Tue Apr 21, 2020 3:39 pm
Country: 天下

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by T3NZ3N »

Except I used javaw.exe, as there is no java.exe in that folder
User avatar
T3NZ3N
Posts: 32
Joined: Tue Apr 21, 2020 3:39 pm
Country: 天下

Re: Using SH3D Portable's Java Files to Run the TLE & FLE

Post by T3NZ3N »

Sorry, you need an edit button. The entire Bat file looked like this:

Run "E:/Portable Programs/3D Programs/SweetHome3D-6.3-portable/jre/windows/x64/jre8/bin/javaw.exe" -jar "E:/Portable Programs/3D Programs/SweetHome3D-6.3-portable/FurnitureLibraryEditor-1.25.jar"

that didn't work for me
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest