Download and Install Oracle JDK 18 on Windows
- 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 22nd 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:
- How to check Java version
- Java SE versions history
- How to set JAVA_HOME environment variable on Windows 10
- 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