JDK有哪些(汇总)

列表:
  1. Java SE Development Kit
  2. OpenJDK
  3. Alibaba Dragonwell
  4. AdoptOpenJDK
  5. OpenJ9
  6. 新版Eclipsse自带JRE
  7. BellSoft builds Liberica JDK
 
2021-06 新建
2023-02-07 更新
 

1、Java SE Development Kit

Java Platform, Standard Edition 8
Java Platform, Standard Edition 11
Java Platform, Standard Edition 16
支持OS:
Windows、Linux、MacOS、Solaris
支持计算机架构:
aarch64、X64、i586、arm32-vfp-hflt、sparcv9
 

2、OpenJDK

JDK 6
JDK 7
JDK 7 Updates
JDK 8
JDK 8 Updates
JDK 9
JDK (… 16, 17, 18)
支持OS:
Windows、Linux、MacOS
 

3、Alibaba Dragonwell

Alibaba Dragonwell 会针对 Long Term Support(LTS) 提供 Java 8 和 Java 11两个版本
阿里巴巴提供季度更新,Java8 更新至少到 2023 年 6月,Java11 更新至少到 2024 年 6月
博文:
Alibaba Dragonwell 是一款免费的, 生产就绪型Open JDK 发行版,提供长期支持,包括性能增强和安全修复。
Alibaba Dragonwell作为Java应用的基石,支撑了阿里经济体内所有的Java业务。Alibaba Dragonwell完全兼容 Java SE 标准,您可以在任何常用操作系统(包括 Linux、Windows 和 macOS)上开发 Java 应用程序, 运行时生产环境选择Alibaba Dragonwell。
 

4、AdoptOpenJDK

AdoptOpenJDK uses infrastructure, build and test scripts to produce prebuilt binaries from OpenJDK™ class libraries and a choice of either OpenJDK or the Eclipse OpenJ9 VM.
6th March 2021 AdoptOpenJDK is moving to the Eclipse Foundation!
注,从 https://spring.io/ 得知了这个 JDK。
支持OS:
Linux, Windows, maxOS, AIX
支持计算机架构:
 
 

5、OpenJ9

Optimized to run Java™ applications cost-effectively in the cloud, Eclipse OpenJ9 is a fast and efficient JVM that delivers power and performance when you need it most.
Eclipse OpenJ9 is a high performance, scalable, Java virtual machine (JVM) implementation that represents hundreds of person-years of effort. Contributed to the Eclipse project by IBM, the OpenJ9 JVM underpins the IBM SDK, Java Technology Edition product that is a core component of many IBM Enterprise software products. Continued development of OpenJ9 at the Eclipse foundation ensures wider collaboration, fresh innovation, and the opportunity to influence the development of OpenJ9 for the next generation of Java applications.
 

6、新版Eclipsse自带JRE

21年8月份,在使用Eclipse (版本 Version: 2021-03 (4.19.0))时发现,其插件中已经有一个JRE了。
这个JRE支持 Java 9~15。
在Eclipse建立项目,右键打开Build Path,里面的 Libraries 中的 JRE System Library 可以选择 jre,而这个jre支持 Java 9~15。
这个JRE 的路径位于:
从路径可以看出,这是一个基于 OpenJDK 的JRE。程序运行后输出如下版本信息:
// Java代码
		cs.accept(System.getProperty("java.runtime.name"));
		cs.accept(System.getProperty("java.vm.vendor"));
		cs.accept(System.getProperty("java.version"));
		cs.accept(System.getProperty("java.vm.name"));
		cs.accept(System.getProperty("java.vm.specification.version"));
		cs.accept(System.getProperty("java.specification.version"));
		cs.accept(System.getProperty("sun.management.compiler"));
		cs.accept(System.getProperty("java.vm.specification.vendor"));
		cs.accept(System.getProperty("java.class.version"));

// 执行结果
OpenJDK Runtime Environment
Oracle Corporation
15.0.2
OpenJDK 64-Bit Server VM
15
15
HotSpot 64-Bit Tiered Compilers
Oracle Corporation
59.0
一般情况下,上面的信息可以使用 jinfo命令查看,但是,请继续看下去...
 
使用这个 JRE 就可以运行Java项目了,还可以运行 高版本的Java项目
但是,使用这个JRE运行项目时,无法使用本地安装的Oracle JDK 1.8下的java相关命令(jmap、jstat、jinfo、jstack等)做调试,会发生下面的错误:
当然了,这个是 JRE,只能运行Java项目——在Eclipse中,而无法将项目打包
因此,使用Eclipse时 需要注意。
 

7、BellSoft builds Liberica JDK

20230203更新
刚刚发现 spring 推荐 该JDK:
该JDK官网:
JDK页面:
Licensing(证书):
下载:
 
 
参考资料:
1、除了Oracle JDK,我们还有哪些选择?
https://segmentfault.com/a/1190000016526240
2、重磅!阿里推出国产开源的jdk!
https://blog.csdn.net/chendasheng/article/details/107054175
3、什么是JDK,举出几个公司开发的JDK
https://www.jobui.com/mianshiti/it/java/7673/
 
posted @ 2021-06-18 11:29  快乐的凡人721  阅读(1403)  评论(0编辑  收藏  举报