Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not open JNLP file using Linux?

I am trying to load an jnlp file. However I have the following error: Could not read or parse JNLP file. I've read that this the problem might be fixed from Mozilla's preferences: Edit -> Preferences -> Applications -> "Java Web Start application". However I dont have "Java Web Start application" section in my Applications (I've installed icedtea-netx but nothing appeares on the Application window). Im using Linux mint. Can someone tell me how to proceed? The solution I refer is in this forum: https://askubuntu.com/questions/91897/first-time-using-java-web-start-in-ubuntu-fatal-launch-exception

EDIT: this is the error that I have:

net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file. 
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:491)
    at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:211)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
Caused by: java.io.IOException: Connection timed out
    at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:282)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:212)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:188)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:173)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:159)
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:477)
    ... 5 more
Caused by: 
java.io.IOException: Connection timed out
    at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:282)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:212)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:188)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:173)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:159)
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:477)
    at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:211)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
like image 251
sammy333 Avatar asked Jul 18 '14 23:07

sammy333


People also ask

Why won't my JNLP file open?

Because JNLP files are program-specific, your computer may not properly recognize JNLP files to execute them using the Java Web Start application. If this happens, you need to modify your computer's file associations so that JNLP files open correctly with the Java Web Start application.

How do I open a JNLP file in Ubuntu?

How do I run a JNLP file in Ubuntu? Ubuntu has OpenJRE in its repositories, or you can download and install Oracle JRE. If the JNLP file is web based, you will need the IcedTea browser extension. If it runs from the command line you can usually run javaw <filename> to launch it.

How do I enable JNLP files?

Open Group Policy panel. User Configuration -> Administrative Templates -> Microsoft Edge. Find list of file types that should be automatically opened on download -> Enable and add JNLP value to options. Apply this policy setting.


1 Answers

This question is too broad because it doesn't specify what exactly doesn't work.

I'll try to provide a couple of observations

  1. You might want to try running the jnlp file "locally" with "javaws" that should reside in the jdk, maybe the jnlp syntax is just wrong. More details can be found Here

  2. Alternatively, maybe its some network issue.

  3. Next possible reason that jnlp as you wrote it just not supported by the particular version of jdk. I remember in jdk 1.6.10 jnlp just didn't work, so an upgrade to a newer version has effectively solved the problem.

Hope this helps

like image 170
Mark Bramnik Avatar answered Sep 19 '22 06:09

Mark Bramnik