Openjdk 和 Java webstart

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/55930547/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 01:14:29  来源:igfitidea点击:

Openjdk and Java webstart

java

提问by Tacitus86

Do the latest open jdk retain support for Java webstart?

最新的 open jdk 是否保留对 Java webstart 的支持?

When building a Java program using openjdk in eclipse can it run on systems thay have regular oracle jre installed?

在 Eclipse 中使用 openjdk 构建 Java 程序时,它可以在安装了常规 oracle jre 的系统上运行吗?

I'm curious because I want to try and start using openjdk (newer versions 12 maybe) if it still has JWS. But if a client installs oracle jre 12 will they be able to run webstart via my app build with openjre? I ask because we really can't count on a client pc having a non oracle jre installed.

我很好奇,因为我想尝试开始使用 openjdk(也许是新版本 12),如果它仍然有 JWS。但是,如果客户端安装了 oracle jre 12,他们是否能够通过我使用 openjre 构建的应用程序来运行 webstart?我问是因为我们真的不能指望安装了非 oracle jre 的客户端电脑。

采纳答案by Stephen C

Q: Do the latest OpenJDK retain support for Java WebStart?

问:最新的 OpenJDK 是否保留对 Java WebStart 的支持?

No. Not Oracle JDK. Not OpenJDK.

不。不是 Oracle JDK。不是 OpenJDK。

  • WebStart support was deprecated in Oracle JDK / JRE distros with Java 9 and removed in Java 11.
  • According to Wikipedia, OpenJDK has never included WebStart. It was Oracle JDK/JRE specific.
  • WebStart 支持在带有 Java 9 的 Oracle JDK / JRE 发行版中被弃用,并在 Java 11 中被删除。
  • 根据维基百科,OpenJDK从未包含 WebStart。它是特定于 Oracle JDK/JRE 的。

There is now a replacement for classic WebStart in the form of OpenWebStart. (The OpenWebStart 1.0.0 release was announced on Nov 18th 2019.)

现在有一个OpenWebStart形式的经典 WebStart 的替代品。(OpenWebStart 1.0.0 版本于 2019 年 11 月 18 日发布。)

The other alternative is to move away from Java WebStart / JNLP to an alternative such as building platform-specific executables using jlink and distributing them in some other way.

另一种替代方法是从 Java WebStart / JNLP 转向替代方法,例如使用 jlink 构建特定于平台的可执行文件并以其他方式分发它们。

Q: When building a Java program using OpenJDK in Eclipse can it run on systems that have regular Oracle JRE installed?

问:在 Eclipse 中使用 OpenJDK 构建 Java 程序时,它可以在安装了常规 Oracle JRE 的系统上运行吗?

Yes, provided that the version of Java installed is new enough.

可以,前提是安装的 Java 版本足够新。

(By the way, Eclipse is not relevant to the question. Java is the same language no matter what IDE or command line tool you use to build.)

(顺便说一句,Eclipse 与问题无关。无论您使用什么 IDE 或命令行工具来构建,Java 都是相同的语言。)

Q: Then what benefit is it to use OpenJDK over Oracle?

问:那么使用 OpenJDK 比使用 Oracle 有什么好处?

See the following:

请参阅以下内容:

Note that there are other alternatives. Read "Java is Still Free".

请注意,还有其他选择。阅读“Java 仍然免费”



I ask because we can't count on a client PC having a non Oracle JRE installed.

我问是因为我们不能指望安装了非 Oracle JRE 的客户端 PC。

Then you should be looking at jlink. It creates self-contained executables. That means that you don't depend on having anyJRE installed on the client PC.

那你应该看看jlink. 它创建自包含的可执行文件。这意味着您不依赖于在客户端 PC 上安装任何JRE。

回答by Hendrik Ebbers

Several parties (RedHat, AdoptOpenJDK & Karakun) are currently working on an open source replacement of Oracle WebStart. The repo can be found here. You can find additional information about the project here.

几方(RedHat、AdoptOpenJDK 和 Karakun)目前正在研究 Oracle WebStart 的开源替代品。可以在这里找到回购。您可以在此处找到有关该项目的其他信息。