本文介绍了适用于Windows的AdoptOpenJDK和Red Hat OpenJDK之间的技术差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Red Hat为Windows仅提供用于开发的 Red Hat OpenJDK 8 (需要注册).AdoptOpenJDK提供了适用于Windows的OpenJDK 8构建( AdoptOpenJDK 8 Windows )任何限制.

Red hat provides the Red Hat OpenJDK 8 for Windows for development use only (registration required). AdoptOpenJDK provides OpenJDK 8 builds for Windows (AdoptOpenJDK 8 Windows) without any restrictions.

使用相同的版本/更新(例如8u181)时,两个软件包之间是否有技术上的区别?技术差异"是指缺少类/函数,不同的默认JVM设置等.

Is there any technical difference between the two packages when using the same version/update(e.g. 8u181)? With "technical difference" I mean missing classes/functions, different default JVM settings, etc.

推荐答案

Red Hat以与AdoptOpenJDK和任何其他开源OpenJDK 8构建完全相同的许可提供OpenJDK 8 Windows二进制文件-在具有类路径异常的GNU GPL v.2 .有关开发用途"的所有限制仅与可从Red Hat购买的订阅(支持)有关.

Red Hat provides OpenJDK 8 Windows binaries under exactly the same license as AdoptOpenJDK and any other open-source OpenJDK 8 build - under the GNU GPL v. 2 with classpath exception. All the restrictions about the "development use" are related only to the subscription (support) that can be purchased from Red Hat.

适用于Windows的Red Hat OpenJDK 8与其他提到的内部版本之间的技术差异很小,因为所有这些内部版本均通过TCK .通常,Red Hat构建试图在行为上尽可能与RHEL和CentOS中包含的OpenJDK 8软件包保持紧密联系.

Technical differences between Red Hat OpenJDK 8 for Windows and other mentioned builds are pretty minor, as all these builds pass TCK. Generally Red Hat builds are trying to stay as close as possible in behaviour to OpenJDK 8 package that is included in RHEL and CentOS.

差异:

  1. RH OpenJDK 8构建是从RHEL/CentOS上使用的OpenJDK RPM软件包的源完成的.这些来源通常非常接近上游来源,但包含一些更改(请参见以下要点)并且可能会提前包含一些错误修正(RPM补丁).RHEL/CentOS的更改可以在公开发布的存储库中进行跟踪CentOS RPM

  1. RH OpenJDK 8 build is done from the sources of OpenJDK RPM package that is used on RHEL/CentOS. These sources are generally very close to upstream sources, but contain some changes (see points below) and may include some bugfixes (RPM patches) ahead of time. RHEL/CentOS changes can be tracked in a publicly-available repo for CentOS RPM

RH OpenJDK 8包括 Shenandoah垃圾收集器

RH OpenJDK 8 includes Shenandoah garbage collector

RH OpenJDK 8将RHEL/CentOS的源用于依赖库(zlib,giflib,libjpeg-turbo,libpng,(不再使用nss )),而不是这些库的(部分)来源包含在上游jdk源中的树中

RH OpenJDK 8 uses sources from RHEL/CentOS for dependency libraries (zlib, giflib, libjpeg-turbo, libpng, (nss is not used anymore)) instead of the (partial) sources of these libraries that are included in-tree in upstream jdk sources

RH OpenJDK 8中的椭圆加密实现仅包含3个最流行的椭圆曲线-NIST P-256,NIST P-384和NIST P-521.

Elliptic Crypto implementation in RH OpenJDK 8 includes only 3 most popular elliptic curves - NIST P-256, NIST P-384 and NIST P-521.

RH OpenJDK 8使用来自RHEL/CentOS的一组根CA证书

RH OpenJDK 8 uses the set of root CA certificates from RHEL/CentOS

RH OpenJDK 8可能使用的时区数据稍新-取自RHEL/CentOS

RH OpenJDK 8 may use slightly newer timezone data - it is taken from RHEL/CentOS

RH OpenJDK 8将所有Java源代码包含在src.zip文件内(IDE使用该Java源代码允许浏览jdk代码),但在上游构建中并未包含这些源代码的大部分

RH OpenJDK 8 includes all Java sources code inside the src.zip file (that is used by IDEs to allow browsing jdk code), in upstream build substantial part of these sources is not included

RH OpenJDK 8不包含演示和样本

RH OpenJDK 8 does not include demos and samples

RH OpenJDK 8包含一组字体文件

RH OpenJDK 8 includes a set of font files

RH OpenJDK 8中的所有本机二进制文件均由RH证书签名

all native binaries in RH OpenJDK 8 are signed by RH certificate

RH OpenJDK 8安装程序包括 JavaFX实现

RH OpenJDK 8 installer includes a JavaFX implementation

RH OpenJDK 8安装程序包括 WebStart实施

RH OpenJDK 8 installer includes a WebStart implementation

来源:我在RH的OpenJDK Windows上工作.

Source: I work on OpenJDK Windows builds at RH.

这篇关于适用于Windows的AdoptOpenJDK和Red Hat OpenJDK之间的技术差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 03:04