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

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

问题描述

Oracle和OpenJDK之间是否存在重大差异?

Are there any crucial differences between Oracle and OpenJDK?

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

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

两者之间GC的工作方式不同吗?

Does GC work differently between the two?

推荐答案

目前已创建和维护OpenJDK和Oracle JDK仅限Oracle。

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

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

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

JDK的大多数供应商都是在OpenJDK之上编写的,通过做一些调整来[主要是替换许可的专有部件/替换只能在特定操作系统上工作的更高性能项目]而不破坏TCK兼容性。

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.

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

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

几乎每个现有的JDK都派生自OpenJDK。

Almost every existing JDK is derived from OpenJDK.

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

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

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

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

参考: 列表Java虚拟机

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

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