You are here

Launching Weasis via jPortable Launcher

5 posts / 0 new
Last post
AbsolutelyRandom
Offline
Last seen: 13 hours 34 min ago
Joined: 2019-03-22 09:18
Launching Weasis via jPortable Launcher

I've been trying to launch the portable version of Weasis Medical Viewer (https://sourceforge.net/projects/dcm4che/files/Weasis/3.7.1/) via jPortable Launcher. I have both jdkPortable and OpenJDK JRE Portable installed. When selecting the .jar file via the launcher nothing happens. Any idea if it is possible to launcher the program this way?

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 23 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Complex Command Line

It looks like the app won't start unless you pass javaw.exe a complex command line in addition to the jar file. Specifically:

# Ignore by Java 8
-XX:+IgnoreUnrecognizedVMOptions
# Required from Java 9
--add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED
--add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED
--add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED
--add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED
--add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.security=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.desktop/javax.imageio.stream=ALL-UNNAMED
--add-opens=java.desktop/javax.imageio=ALL-UNNAMED
--add-opens=java.desktop/com.sun.awt=ALL-UNNAMED

# Required parameter. Start OSGI console on the port 17179
-Dgosh.args="-sc telnetd -p 17179 start"

Note that this won't currently work with the jPortable launcher.

Sometimes, the impossible can become possible, if you're awesome!

AbsolutelyRandom
Offline
Last seen: 13 hours 34 min ago
Joined: 2019-03-22 09:18
Thank you for looking into it

Thank you for looking into it! I am inexperienced with Java so I don't really know how it all works. I have just checked the installer version of Weasis and it works without Java installed on the system. Apparently it's somehow integrated into the program.

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 23 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Bundling

You can bundle in the JVM with apps themselves. A simple launcher would help this app work portably with one of our JREs as well. Unfortunately, even with the new arguments support in the next jPortable Launcher, this app needs more advanced stuff command line wise to work properly.

Sometimes, the impossible can become possible, if you're awesome!

ollydbg23
Offline
Last seen: 4 months 4 days ago
Joined: 2008-04-12 03:11
Hi, John, can you have a look

Hi, John, can you have a look at this link:

jPortable Launcher: Pass arguments | PortableApps.com — https://portableapps.com/node/30058

For some reasons, I would like to use the java launcher to start a jar file, but that jar file need some command line options.

Is there any to do this?

Thanks

Log in or register to post comments