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.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:
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.