Windows version of OpenJDK installation procedure

For the Amazon Corretto installation procedure, refer to Amazon Corretto installation procedure for Windows --Qiita.

How to find out

Premise

--Supported Windows. --OpenJDK 10 was distributed in .tar.gz format, so the tar command was needed, Since OpenJDK 11 and later are distributed in zip format, it is no longer necessary to be the latest.

Remarks

--If you download and unpack the new version of OpenJDK, just change the variable value of ** JAVA_HOME **. --Leave Path as % JAVA_HOME% \ bin.

Installation procedure

  1. Go to jdk.java.net and download the Windows version of the zip file.
  2. Click the link that says * Ready for use: *. --This time, it is assumed that you clicked ** JDK 13 **.
  3. Click ** zip ** on * Windows / x64 * to download.
  4. Right-click the downloaded file and click ** Extract All *. - Compressed (ZIP format) Folder extraction * A window opens.
  5. In the * Extract files to the folder below *, enter C: \ and press the ** Extract ** button. --In the above, depending on the OS and browser, a backslash may be displayed after the colon (:), but for Japanese keyboards, a backslash is OK. --A folder called jdk-13.0.1 is expanded directly under the C drive.
  6. Delete the downloaded file.
  7. Move to the extracted folder and copy the path from the address bar. --The path this time is C: \ jdk-13.0.1.
  8. Open ** Start-Settings *. - Windows Settings * window is displayed.
  9. Enter environment variable in the search window. -* Edit environment variables * and * Edit system environment variables * are displayed as candidates.
  10. Click ** Edit Environment Variables *. - Environment Variables * window is displayed.
  11. Click the ** New ** button of * User environment variable . - New user variable * window is displayed.
  12. Enter the following and press the ** OK ** button. --Variable name: ** JAVA_HOME ** --Variable value: (Paste the path you copied earlier.) --In this case, you will paste C: \ jdk-13.0.1.
  13. In the * Environment Variables * window, click ** Path ** of * User Variables * and press the ** Edit ** button. -* Edit environment variable name * window is displayed.
  14. Press the ** New ** button, enter % JAVA_HOME% \ bin, and press the ** OK ** button. -* Environment Variables * Return to the window.
  15. Just press the ** OK ** button. -* Windows Settings * You can close the window.
  16. Open a command prompt and check that the java and javac commands are available.
```shell
openjdk version "13.0.1" 2019-10-15
OpenJDK Runtime Environment (build 13.0.1+9)
OpenJDK 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)
```
```shell
javac 13.0.1
```

Don't miss it.

Recommended Posts

Windows version of OpenJDK installation procedure
Amazon Corretto for Windows installation procedure
OpenJDK installation
eclipse installation procedure
OpenJDK 11 installation memo
[Windows 64bit environment] About installation of Apache Spark
Java (eclipse) installation procedure
About selection of OpenJDK
Summary of OpenJDK sources
Doorkeeper gem installation procedure
Recommendation of Windows command line tool Scoop (version control)
OpenJDK installation on CentOS 7
Rails, RSpec installation procedure
[IntelliJ] Initial setting procedure of IntelliJ
Manually build OpenJDK on Windows
Firebase Remote Config installation procedure
ROS installation Ubuntu compatible version
Switch the version of bundler