无法打开 .jnlp 文件,即使已安装了 JRE。

huangapple go评论75阅读模式
英文:

Can't open .jnlp file even though I have a JRE installed

问题

我已经下载了一个 .jnlp 文件,但是当我使用 Java Web Start 打开它时,出现了以下消息:"要打开此 Web Start 应用程序,您需要下载 Java Runtime Environment。" 操作系统是 macOS 10.15.6。

在终端中运行 java -version 输出:

java version "13.0.1" 2019-10-15
Java(TM) SE Runtime Environment (build 13.0.1+9)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

所以实际上我已经安装了 JRE。我应该怎么做来打开这个文件呢?

英文:

I have downloaded a .jnlp file, but when opening it with Java Web Start I am greeted with the following message: "To open this Web Start application you need to download the Java Runtime Environment." The OS is macOS 10.15.6.

Running java -version in the Terminal outputs

java version "13.0.1" 2019-10-15
Java(TM) SE Runtime Environment (build 13.0.1+9)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

So I do, in fact, have a JRE installed. What can I do to open the file?

答案1

得分: 1

JNLP 是为 Java Webstart 技术定义的文件格式。请访问 https://openwebstart.com/

Java Web Start(JWS)在 Java 9 中被弃用,并且从 Java 11 开始,Oracle 将 JWS 从其 JDK 发行版中移除。
[...]
这就是为什么我们决定创建 OpenWebStart,这是 Java Web Start 技术的开源重新实现。

您将不得不降级您的 Java 安装或添加 OpenWebStart。

英文:

JNLP refers to the file format defined for Java Webstart technology. Check out https://openwebstart.com/:

Java Web Start (JWS) was deprecated in Java 9, and starting with Java 11, Oracle removed JWS from their JDK distributions.
[...]
This is why we decided to create OpenWebStart, an open source reimplementation of the Java Web Start technology.

You will either have to downgrade your Java installation or add OpenWebStart.

答案2

得分: 0

我今天在Windows上运行时遇到了同样的问题。即使使用Java Web Start运行,.jnlp文件也无法识别已安装的JRE。

我继续重新安装了JRE 8,然后.jnlp文件成功启动了。

英文:

I had this same issue today while running on Windows. The .jnlp file wasn't recognizing the that JRE was installed even with Java Web Start running.

I went ahead and reinstalled JRE 8 and the .jnlp file launched just fine.

huangapple
  • 本文由 发表于 2020年8月18日 08:51:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/63460401.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定