Tous les environnements sont Windows
De plus, les propriétés système qui peuvent être obtenues avec le code Java suivant sont extraites et décrites.
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()));});
> 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
**Extrait**
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
> 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
**Extrait**
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
**Extrait**
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
**Extrait**
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
**Extrait**
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
**Extrait**
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
Recommended Posts