Download and Install OpenJDK 23 on Windows
- Details
- Written by Nam Ha Minh
- Last Updated on 28 October 2024   |   Print Email
1. Download Binary Distribution of OpenJDK 23 for Windows
Click this link to visit the official OpenJDK 23 download page, which appears as follows:
2. Verify the Downloaded Zip File
Before using the downloaded ZIP file, it’s strongly recommended to verify its integrity by comparing the SHA256 checksum value of the file with the one published on the download page. To verify, open a new Command Prompt window (press the Start button, type ‘cmd’, and click the best match), and use the cd command to set the current directory to the location of the downloaded file. For example:cd Downloads
Then type the following command:certutil -hashfile openjdk-23.0.1_windows-x64_bin.zip sha256
This prints the SHA256 checksum of the specified file. Compare it to the checksum shown in the link (2) in the download page screenshot above. If they match, you can extract the ZIP file to install the JDK.
3. Install OpenJDK 23 on Windows
tar -xf openjdk-23.0.1_windows-x64_bin.zip -C D:\OpenJDK
This command extracts the ZIP file into the OpenJDK directory on the D drive, so the JDK installation directory becomes D:\OpenJDK\jdk-23.0.1.Next, we need to configure a couple of system environment variables, such as JAVA_HOME and Path. To do this, click the Start button, type ‘environment variable’, and click the best match, Edit the system environment variables. In the System Properties dialog, click the Environment Variables button.In the Environment Variables dialog, click the New button under System variables list to create a new variable named JAVA_HOME, as shown below:

4. Verify the OpenJDK 23 Setup on Windows
The final step is to perform some checks to ensure everything is configured properly. Open a new Command Prompt window and type java -version to check the version of the Java Virtual Machine (JVM). You should see the following output:
Related Articles:
- How to set JAVA_HOME in macOS and Linux permanently
- How to set JAVA_HOME environment variable on Windows 10
- What are JVM, JRE and JDK
- How to write, compile and run a hello world Java program for beginners
- Java Core Language Tutorials
About the Author:

Comments