我无法让 javavws(IcedTea)在 Ubuntu 18.04 中运行(JRE OpenJDK 版本 8)。
我通过以下方式安装了 IcedTea:
sudo apt install default-jre icedtea-netx
我的 JRE 的活动版本是:OpenJDK 8:
franc@franc-XPS-13-9370:/etc$ echo $JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/bin/java
尝试启动 JNLP 应用程序后,
javaws knvb.jnlp
我收到以下错误消息:franc@franc-XPS-13-9370:/etc$ javaws knvb.jnlp selected jre: /usr/lib/jvm/java-8-openjdk-amd64/bin/java thread 'main' panicked at 'Error spawning JVM process, java executable: [/usr/lib/jvm/java-8-openjdk-amd64/bin/java], arguments: [["-splash:/usr/share/icedtea-web/javaws_splash.png", "-Xbootclasspath/a:/usr/share/icedtea-web/javaws.jar:/usr/share/java/js.jar:/usr/share/java/tagsoup.jar:/usr/lib/jvm/java-8-openjdk-amd64/bin/java/lib/ext/nashorn.jar:", "-classpath", "/usr/lib/jvm/java-8-openjdk-amd64/bin/java/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/bin/java/lib/ext/jfxrt.jar:", "-Dicedtea-web.bin.name=javaws", "-Dicedtea-web.bin.location=/usr/lib/icedtea-web/bin/javaws", "net.sourceforge.jnlp.runtime.Boot", "knvb.jnlp" ]]', src/os_access.rs:36:19 note: Run with `RUST_BACKTRACE=1` for a backtrace.
答案1
我将符号链接 /usr/lib/jvm/default-java 更改为 java-1.8.0-openjdk-amd64(而不是 java-1.11.0-openjdk-amd64)