四次元科技

科技、动漫、生活、学习以及一切

Amazon Corretto介绍及下载

为什么需要OracleJDK的替代品

之前Oracle官方发布过这样一条公告

End of Public Updates of Java SE 8

Java SE 8 is going through the End of Public Updates process for legacy releases. Oracle will continue to provide free public updates and auto updates of Java SE 8, until at least the end of December 2020 for Personal Users, and January 2019 for Commercial Users. Personal Users continue to get free Java SE 8 updates from Oracle at java.com (or via auto update), and Commercial Users continue to get free updates to Java SE 8 from OTN for free under the BCL license. Starting with the April 2019 scheduled quarterly critical patch update, Oracle Customers can access updates to Java SE 8 for commercial use from Oracle through My Oracle Support and via corporate auto update where applicable (Visit My.Oracle Support Note 1439822.1 - All Java SE Downloads on MOS – Requires Support Login).

Oracle does not plan to migrate desktops from Java SE 8 to later versions via the auto update feature. This includes the Java Plugin and Java Web Start. Instead of relying on a browser-accessible system JRE, we encourage application developers to use the packaging options introduced with Java SE 9 to repackage and deliver their Java applications as stand-alone applications that include their own custom runtimes.

Current releases remain free and open source for all users from jdk.java.net.

总之意思就是对Java SE 8准备停止公共更新支持了,而之后如果想用新的JDK 11或者JDK 12,则不能像之前一样免费使用。

于是找东西替代Oracle JDK就成了一件板上钉钉的事情。

为什么不用官方OpenJDK

首先是OpenJDK的话Windows上的二进制版本貌似官方只提供了OpenJDK 10和OpenJDK 11的GA版本,目前绝大多数程序都还是基于JDK 8 开发的,从JDK 8直接升级到JDK 10/JDK 11的话,有可能会带来一些不必要的兼容问题。

再者说官方提供的OpenJDK只有x64版本,对于某些x86开发环境来说不是很友好。而且不内置JRE,用来做运行库也很蛋疼,总之就是体验暂时还略显糟糕。

Amazon Corretto

这货也是我无意中发现的,本来以为和Redhat发布的那种OpenJDK的二进制一样,也是只有x64不含JRE什么的,结果点进去一看,该有的东西全都有,可以说非常接近OracleJDK现在的状态了。

其次目前Amazon Corretto同时对JDK 8和JDK 11进行维护更新,至少不会有太大的兼容性问题。

不管怎么说,就决定是你了。

官方地址

Amazon Corretto主页:

https://aws.amazon.com/cn/corretto

Amazon Corretto 8下载:

https://docs.aws.amazon.com/zh_cn/corretto/latest/corretto-8-ug/downloads-list.html

当然,其实你也可以用Redhat提供的二进制包

下载地址:

https://developers.redhat.com/products/openjdk/download/