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:

openjdk java version

 

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:

oracle jdk installer

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:

oracle jdk java version

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:


About the Author:

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.



Add comment

   


Comments 

#16English2024-04-01 06:39
JAVA IS VERY IMPORTAN
Quote
#15farxiyo2023-06-25 05:32
help i wanted to download jdk
Quote
#14Mlondolozi2022-05-12 05:11
[quote name=" Mlondolozi Maphumulo"]I want to download JDK for my java development.
Quote
#13Fantahun Kebede AMEN2022-03-04 08:07
I am student i need jdk pkg
Quote
#12fozia2022-02-19 00:27
i want to download jdk for java development
Quote