6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Java バージョン表記比較

Last updated at Posted at 2018-09-26

環境はいずれもWindows

合わせて、次のようなJavaコードで取得できるシステムプロパティを抜粋して記載する。

jshell> System.getProperties().entrySet().stream().collect(Collectors.toMap(entry->{return String.valueOf(entry.getKey());}, entry->entry.getValue())).entrySet().stream().sorted(java.util.Map.Entry.comparingByKey()).forEach(entry->{System.out.println(String.format("%s : %s", entry.getKey(), entry.getValue()));});

AdoptOpenJDK 11 (2018/10/04 追記)

> java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment AdoptOpenJDK (build 11+28-201810022317)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11+28-201810022317, mixed mode)
System.getProperties
**一部抜粋**
java.class.version : 55.0
java.runtime.name : OpenJDK Runtime Environment
java.runtime.version : 11+28-201810022317
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 11
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.java.com/bugreport/
java.vendor.version : AdoptOpenJDK
java.version : 11
java.version.date : 2018-09-25
java.vm.compressedOopsMode : Zero based
java.vm.info : mixed mode
java.vm.name : OpenJDK 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 11
java.vm.vendor : Oracle Corporation
java.vm.version : 11+28-201810022317

OpenJDK 11 (Oracle ビルド版)

※ OpenJDK11のOracleビルド版は「jdk.java.net」から取得できます。

> java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
System.getProperties
**一部抜粋**
java.class.version : 55.0
java.runtime.name : OpenJDK Runtime Environment
java.runtime.version : 11+28
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 11
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.java.com/bugreport/
java.vendor.version : 18.9
java.version : 11
java.version.date : 2018-09-25
java.vm.compressedOopsMode : Zero based
java.vm.info : mixed mode
java.vm.name : OpenJDK 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 11
java.vm.vendor : Oracle Corporation
java.vm.version : 11+28

Oracle JDK 11

> java -version
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
System.getProperties
**一部抜粋**
java.class.version : 55.0
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 11+28
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 11
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.java.com/bugreport/
java.vendor.version : 18.9
java.version : 11
java.version.date : 2018-09-25
java.vm.compressedOopsMode : Zero based
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 11
java.vm.vendor : Oracle Corporation
java.vm.version : 11+28

Oracle JDK 10

> java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
System.getProperties
**一部抜粋**
java.class.version : 54.0
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 10.0.1+10
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 10
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.java.com/bugreport/
java.vendor.version : 18.3
java.version : 10.0.1
java.version.date : 2018-04-17
java.vm.compressedOopsMode : Zero based
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 10
java.vm.vendor : "Oracle Corporation"
java.vm.version : 10.0.1+10

Oracle JDK 9

> java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
System.getProperties
**一部抜粋**
java.class.version : 53.0
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 9.0.4+11
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 9
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.java.com/bugreport/
java.version : 9.0.4
java.vm.compressedOopsMode : Zero based
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 9
java.vm.vendor : Oracle Corporation
java.vm.version : 9.0.4+11

Oracle JDK 8

> java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
System.getProperties
**一部抜粋**
java.class.version : 52.0
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 1.8.0_181-b13
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 1.8
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.sun.com/bugreport/
java.version : 1.8.0_181
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 1.8
java.vm.vendor : Oracle Corporation
java.vm.version : 25.181-b13
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?