How to Download and Install OpenJDK 16
- Details
- Written by Nam Ha Minh
- Last Updated on 12 June 2021   |   Print Email
1. Download Binary Distribution of OpenJDK 16
Go to the official homepage of OpenJDK 16, and click on the link for downloading a zip file for Windows/x64, as shown below:It will download the file name openjdk-16.0.1_windows-x64_bin.zip. And I recommend you verify SHA256 checksum of the downloaded file, by typing this command in a command prompt window:certutil -hashfile openjdk-16.0.1_windows-x64_bin.zip SHA256
Then compare the hash value produced by this command, against the value published on the website:733b45b09463c97133d70c2368f1b9505da58e88f2c8a84358dd4accfd06a7a4
If they are identical, it’s safe to use the downloaded zip file.2. Install OpenJDK 16 on Windows
JAVA_HOME=D:\OpenJDK16\jdk-16.0.1
Follow this post to know how to set JAVA_HOME on Windows. And ensure that the system environment variable PATH does contain an entry of JAVA_HOME\bin.Open a new command prompt window, and type java –version, you should see the following output:That means you have successfully installed OpenJDK 16 on your Windows computer. Enjoy experimenting the new features of Java 16, which includes Pattern matching for instance of operator and Records.To watch the steps of installing OpenJDK 16 in action, kindly watch the following video:Learn more:
- How to check Java version
- Java SE versions history
- How to set environment variables for Java using command line
- How to write, compile and run a hello world Java program for beginners
- What are JVM, JRE and JDK
Comments