JRE 何时完全停止作为单独的产品?

When JRE was completely discontinued as a separate offering?

从Java9开始引入模块系统,单独提供JRE冗余.

通过,好像还是可以下载的。例如,从现在开始 Java 9 archive 此外,here 仅说明:

Restructure the JDK and JRE run-time images to draw a clear distinction between files that developers, deployers, and end-users can rely upon and, when appropriate, modify, in contrast to files that are internal to the implementation and subject to change without notice.

The new image structure eliminates this distinction: A JDK image is simply a run-time image that happens to contain the full set of development tools and other items historically found in the JDK.

所以不谈完全删除。 来自:jdk-9

When you install jdk-9, public jre-9 also gets installed automatically.

此外,我认为从 Java 9 开始,自定义运行时应该始终使用 jlink 创建,但现在似乎只从 Java 11 开始强制执行。 来自 Java 11 的发行说明 Oracle JDK release notes:

In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option. In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered. Users can use jlink to create smaller custom runtimes.

但是我可以找到很多这样的讨论:

是这样吗,从Java11开始就不能直接下载JRE了?还是我在(Oracle 和 OpenJDK)之间混合实现?还是上述讨论具有误导性?

编辑:我不需要下载 jre,我可以通过 jlink 创建它或使用已经可用的解决方案,我的问题更多是理论上的

Is this the case and it is not possible to download JRE directly since Java 11? Or am I mixing implementations between (Oracle and OpenJDK)?

这是正确的(大部分)。从 Java 11 开始,Oracle JDK 或 OpenJDK JDK 都没有相应的 JRE 可供 public 下载。

但是,Java 的其他一些发行商确实提供 JRE 下载(或包)作为选项。详细信息可以通过下面的“Java 仍然免费”link 找到。

When JRE was completely discontinued as a separate offering?

Oracle 和 OpenJDK 发行版 Java 11 已停产。Java 11 release notes 状态:

"In this release, the JRE or Server JRE is no longer offered. Only the JDK is offered. Users can use jlink to create smaller custom runtimes."

我无法找到任何早期的 public 来自 Oracle 的关于停止其 JRE 版本的公告。 (如果有人找到了,请评论...)


请注意:这是对 OP 提出的具体问题的具体回答。有关 Java 相对于许可证、发行版、供应商、支持以及 Java 是否“免费”的更多信息,我建议您阅读以下内容:

这是一份“实时”文档,很可能仍然是最新信息的良好来源;即 比这个答案更可能是最新的!

首先,问题是不正确的。 JRE 并未停产。它只是被甲骨文停产了。例如,在 Linux 上,JRE 仍然可用*:

$ apt-cache search openjdk-11-jre
openjdk-11-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-11-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-11-jre-zero - Alternative JVM for OpenJDK, using Zero

* 需要存储库 ppa:openjdk-r/ppa

一些其他 JDK 提供商也仍然提供 JRE: