sam*_*333 11 java linux jnlp linux-mint
我正在尝试加载jnlp文件.但是我有以下错误:Could not read or parse JNLP file.我已经读过这个问题可能会从Mozilla的首选项中修复:编辑 - >首选项 - >应用程序 - >"Java Web Start应用程序".但是我的应用程序中没有"Java Web Start应用程序"部分(我已经安装了icedtea-netx但在Application窗口中没有出现任何内容).我正在使用Linux薄荷.谁能告诉我怎么办?我参考的解决方案在这个论坛中:https://askubuntu.com/questions/91897/first-time-using-java-web-start-in-ubuntu-fatal-launch-exception
编辑:这是我的错误:
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)
Run Code Online (Sandbox Code Playgroud)
小智 1
首先确保您安装了正常运行的 OpenJDK。尝试删除并重新安装冰茶,如果您安装了 6 个冰茶,也可以通过这种方式升级到 7 个。
sudo apt-get remove icedtea-6-plugin && sudo apt-get install icedtea-7-plugin
Run Code Online (Sandbox Code Playgroud)