You are here

Can jPortable be used to open .jnlp files?

5 posts / 0 new
Last post
Tixue
Offline
Last seen: 3 months 2 weeks ago
Joined: 2009-04-04 14:10
Can jPortable be used to open .jnlp files?

An installed version of Java has a feature known as 'Java Web Start', which allows opening files ending with the jnlp file extension.

When I try dragging a jnlp file to JavaPortableLauncher.exe it says:

---------------------------
Java Virtual Machine Launcher
---------------------------
Error: Invalid or corrupt jarfile C:\Users\Tixue\Downloads\launch.jnlp
---------------------------
OK   
---------------------------

Can I open .jnlp files with jPortable? If so, how? and if not, why not?

mjashby
Offline
Last seen: 3 months 1 week ago
Developer
Joined: 2008-09-19 13:35
jnlp Files

Everything that I've seen about launching jnlp files directly indicates that this only works with the installed version of Java if/when file associations are set to enable a direct software launch. This would not be possible with the portable java installation in Windows 10 as Microsoft does not allow file associations to set for anything other than 'fully' installed software for security reasons, i.e. the specific prevention of non-installed software from altering a user's existing system settings.

The only possible work-around I can suggest would be to try one of the portable File Manager's that implements some form of internal file associations. Oracle's website has guidance on how to make calls to the feature in the installed version of Java. Alternatively, you might try using the same guidance to write a script routine to direct the software file to the appropriate Java Portable feature, which should presumably be present in the Java Portable installation, as the software downloaded and unpacked by PortableApps is identical to that which would be used for a full local installation. The javaws.exe file is present in PortableApps Java installations, which suggests that all of the necessary elements Oracle mentions in its development guidance do exist.

drzoodle
Offline
Last seen: 4 years 8 months ago
Joined: 2019-06-25 22:37
Start a command prompt

Start a command prompt
Navigate to the java installation commonfiles\java\bin folder where javaws.exe is
javaws.exe PATH_TO_JNLP -J

Voila!

Maestr0
Offline
Last seen: 4 years 7 months ago
Joined: 2013-05-16 05:36
if you add the switch

if you add the switch -system to it, it'll save the file to cache, which can save time.

So we get:
Start a command prompt
Start a command prompt
Navigate to the java installation commonfiles\java\bin folder where javaws.exe is
javaws.exe -system "PATH_TO_JNLP -J"

John T. Haller
John T. Haller's picture
Online
Last seen: 6 min 44 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Experimental Support in jPortable Launcher 5.0

Experimental jnlp support has been added in today's jPortable Launcher 5.0 release. Note that it is untested and data will likely not be portable.

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

Log in or register to post comments