For Windows operating system, click the zip link (number 1) next to Windows/x64. It will download the openjdk-19.0.1_windows-x64_bin.zip file on to your computer (version number maybe different at the time you download).Secondly, it’s strongly recommended to verity the integrity of the downloaded file by comparing SHA256 checksum. Open a new command prompt window, change the current directory to the location of the zip file, and type the following command:certutil -hashfile openjdk-19.0.1_windows-x64_bin.zip sha256
Then compare the SHA256 printed by this command against the value published on the website (click link number 2 above). If both are identical, you can safely use the archive.tar -xf openjdk-19.0.1_windows-x64_bin.zip
JAVA_HOME = g:\OpenJDK19\jdk-19.0.1
PATH = JAVA_HOME\bin + PATH
Follow my instruction in this post to update JAVA_HOME.Now, open a new command prompt (not the existing one) to verify. Type java -version and you should see the following output:
Congratulations! You have successfully installed OpenJDK 19 on your Windows operating system. Watch the following video to see the steps in action:
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.