Oracle JDK之前被稱爲SUN JDK。 2009年Oracle收購SUN公司之後命名爲Oracle JDK.
Oracle JDK是基於OpenJDK源代碼構建的。
使用 java -version 查看JDK的版本
OracleJDK 8
如果是 OracleJDK, 顯示信息爲:
$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
說明:
JDK 版本 “1.8.0_60”, 支持 Java 8, 使用的是 Oracle 的64位HotSpot虛擬機。
AdoptOpenJDK 11
$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
說明:
JDK 版本 “11.0.4”, 支持 Java 11, 使用的是 OpenJDK 64-Bit Server VM
(HotSpot虛擬機)。
在 AdoptOpenJDK 官網下載 jdk 會有2個選擇:
1. Choose a Version (選擇Java版本)
OpenJDK 8 (LTS)
OpenJDK 11 (LTS)
OpenJDK 13 (Latest)
2. Choose a JVM (選擇JVM)
HotSpot
OpenJ9
AdoptOpenJDK 也是基於OpenJDK源代碼構建的。
AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure.
Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.
JVM: Java Virtual Machine / Java虛擬機
目前主流的 JVM
有:
HotSpot VM
Eclipse OpenJ9 VM
Azul Zing VM (Azul公司)
HotSpot VM:
HotSpot VM
是 OracleJDK / SunJDK 以及 OpenJDK 裏的 JVM
實現。使用最廣泛,JDK默認安裝的。
HotSpot is the VM from the OpenJDK community. It is the most widely used VM today and is used in Oracle’s JDK. It is suitable for all workloads.
OpenJ9 VM:
OpenJ9 是一個獨立實現的Java虛擬機。
OpenJ9 現在全名是 Eclipse OpenJ9 virtual machine (VM) 。
OpenJ9 是原來的 IBM J9 Java 虛擬機 (JVM), 2017年 IBM 將該項目捐獻給了 Eclipse OMR project
。
Eclipse OpenJ9 is the VM from the Eclipse community. It is an enterprise-grade VM designed for low memory usage and fast start-up and is used in IBM’s JDK. It is suitable for running all workloads.
Azul Zing VM
Azul Zing VM: Azul Systems 公司出品的 VM。
With the Zing® JVM you can:
- Increase cluster carrying capacity by up to 70% or more
- Meet required service delivery levels without constant tuning
- Deliver a better end-user experience
- Reduce operational costs and capital spending
- Redeploy Engineering resources away from JVM issues
[END]