--Environment: Windows10 Pro version 1903 -Click here to install using Homebrew on Mac
https://jdk.java.net/ {version} /
--This time it's JDK11, so https://jdk.java.net/11/#Unzip the download zip file to any location
$ unzip ~/Downloads/openjdk-11.0.2_windows-x64_bin.zip -d /c/app/
Archive: /c/Users/m-uki/Downloads/openjdk-11.0.2_windows-x64_bin.zip
creating: /c/app/jdk-11.0.2/
creating: /c/app/jdk-11.0.2/bin/
inflating: /c/app/jdk-11.0.2/bin/api-ms-win-core-console-l1-1-0.dll
...abridgement...
#Check the version
$ /c/app/jdk-11.0.2/bin/java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Win + R
to display the dialogC: \ app \ jdk-11.0.2
in this case) in [Variable value] DesignationIf the PATH passes, you can check the version only with java
$ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
Recommended Posts