Oracle JDK 和 OpenJDK 之间的差异 [英] Differences between Oracle JDK and OpenJDK

查看:46
本文介绍了Oracle JDK 和 OpenJDK 之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<块引用>

注意:这个问题来自 2014 年.截至 Java 11 OpenJDK 和 OracleJDK 正在融合.

Oracle 和 OpenJDK 之间有什么重要的区别吗?

例如,垃圾收集和其他JVM参数是否相同?

GC 在两者之间的工作方式是否不同?

解决方案

OpenJDK 和 Oracle JDK 目前仅由 Oracle 创建和维护.

OpenJDK 和 Oracle JDK 是通过 TCK(Java 技术认证工具包)的同一 Java 规范的实现.

大多数 JDK 供应商都是在 OpenJDK 之上编写的,通过对 [主要是替换许可的专有部件/替换为仅适用于特定操作系统的更多高性能项目] 组件进行一些调整,而不破坏 TCK 兼容性.

许多供应商实施了 Java 规范并通过了 TCK.例如,IBM J9、Azul Zulu、Azul Zing 和 Oracle JDK.

几乎所有现有的 JDK 都源自 OpenJDK.

正如许多人所建议的,许可是 JDK 之间的变化.

从 JDK 11 开始,获得长期支持的 Oracle JDK/Java SE 现在需要商业许可.您现在应该注意您正在安装的 JDK,因为没有订阅的 Oracle JDK 可能会停止工作.来源

参考:Java 虚拟机列表

NOTE: This question is from 2014. As of Java 11 OpenJDK and Oracle JDK are converging.

Are there any crucial differences between Oracle and OpenJDK?

For example, are the garbage collection and other JVM parameters the same?

Does GC work differently between the two?

解决方案

Both OpenJDK and Oracle JDK are created and maintained currently by Oracle only.

OpenJDK and Oracle JDK are implementations of the same Java specification passed the TCK (Java Technology Certification Kit).

Most of the vendors of JDK are written on top of OpenJDK by doing a few tweaks to [mostly to replace licensed proprietary parts / replace with more high-performance items that only work on specific OS] components without breaking the TCK compatibility.

Many vendors implemented the Java specification and got TCK passed. For example, IBM J9, Azul Zulu, Azul Zing, and Oracle JDK.

Almost every existing JDK is derived from OpenJDK.

As suggested by many, licensing is a change between JDKs.

Starting with JDK 11 accessing the long time support Oracle JDK/Java SE will now require a commercial license. You should now pay attention to which JDK you're installing as Oracle JDK without subscription could stop working. source

Ref: List of Java virtual machines

这篇关于Oracle JDK 和 OpenJDK 之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆