- Details
- Written by Nam Ha Minh
- Last Updated on 14 April 2022   |   Print Email
JDK 18 is a regular update of Java Development Kit, which was released on March 22
nd 2022 - with notably updates like UTF-8 by Default and Simple Web Server.In this article, I’d like to share with you how to download and install Oracle JDK on Windows operating system. Oracle JDK is a commercial distribution of JDK under the Oracle No-Fee Terms and Conditions. Oracle JDK is free to use in production.
1. Download Oracle JDK 18 Installer for Windows
Click
this link to head over to the official download page of Oracle JDK for Windows. Then click on the last link to download the x64 MSI installer:
You will be asked to download the file
jdk-18_windows-x64_bin.msi. After download, it’s recommended to verify the integrity of the downloaded file. Open a new command prompt, change the current directory to the one that contains the downloaded file. Then type the following command:
certutil -hashfile jdk-18_windows-x64_bin.msi sha256
Then compare the printed SHA256 checksum against the one published in the sha256 link, which is next to the download link. If both are identical, you’re safe to use the installer.
2. Install Oracle JDK 18 on Windows
Double click on the .msi file to launch setup program for Oracle JDK 18:
Just click Next few times to proceed. The installation of Oracle JDK 18 is simple and quick. It also updates the system environment variable PATH so you should open a new command prompt window to verify - by typing
java -version and
javac -version commands:
This means Oracle JDK 18 has been successfully installed on your Windows computer. If you don’t see this, try to
set JAVA_HOME manually.
Learn more:
About the Author:
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on
Facebook and watch
his Java videos you YouTube.