Download and Install JDK 14 (OpenJDK and Oracle JDK)
- Details
- Written by Nam Ha Minh
- Last Updated on 21 April 2020   |   Print Email
This article is a guide to download and install OpenJDK and Oracle JDK for Java 14 on Windows operating system.
You know, Java Development Kit (JDK) 14 was released on March, 17th 2020 with two kinds of build: OpenJDK and Oracle JDK. OpenJDK is distributed under GPL license and Oracle JDK is distributed under Oracle Technology Network (OTN) license.
1. Download and Install OpenJDK 14
OpenJDK is a production-ready and open-source Java Development Kit, released under the GNU General Public License (GPL) version 2. That means you can freely use OpenJDK for personal, development and commercial use.
Go to the official download page of OpenJDK 14: https://jdk.java.net/14/
Then choose the appropriate package for your operating system (Linux, MacOS or Windows). Note that OpenJDK comes with only archive file (zip or tar.gz), no installer program. For instance, the archive file for Windows is openjdk-14_windows-x64_bin.zip (~189MB).
I strongly recommend you to verify the SHA256 checksum of the file downloaded. On Windows, type the certutil command like this:
certutil -hashfile openjdk-11.0.2_windows-x64_bin.zip SHA256
Then compare the hash code generated with the one provided on the website. If both are identical, it’s safe to install and use.
Then extract the archive file and update the PATH or JAVA_HOME system environment variable pointing to the installation directory of JDK 14 (Read the instruction here). For example:
JAVA_HOME=g:\JDK\OpenJDK\jdk-14
PATH=%JAVA_HOME%\bin;…
PATH= g:\JDK\OpenJDK\jdk-14\bin;…
Then type the java –version command to verify. You should see the following screen:
This means OpenJDK has been installed successfully.
Watch the video:
2. Download and Install Oracle JDK 14
Oracle JDK is a commercial build for Java Development Kit. Oracle JDK is free for personal and development use, but you have to pay license fee for commercial use via Java SE subscription program.
Click official Java SE download page to download Oracle JDK which is distributed in both archive (zip and tar.gz) and installer program (rpm on Linux, dmg on Mac and exe on Windows).
Choose the installer according to your operating system, e.g. Windows x64 Installer for Windows – the file name is jdk-14_windows-x64_bin.exe.
You should also verify the SHA256 checksum for the file downloaded, as described above. Then run the installer program. You will see the Java(TM) SE Development Kit 14 (64-bit) program appears as follows:
Just click Next twice to install. The setup for Oracle JDK 14 using installer is quick and easy, but it doesn’t update the relevant system environment variables and do file associations. So you still need to manually update the JAVA_HOME and PATH (See the instruction here). For example:
JAVA_HOME=C:\Program Files\Java\jdk-14
Now in the command prompt, type the java –version command to check:
You see, JDK 14 is now installed on your computer.
Watch the video:
Next, you may need to configure your Eclipse IDE to experiment new language features in Java 14, follow these tutorials:
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