In this post, I will guide you how to download and setup JDK 13 on Windows operating system for both OpenJDK and Oracle JDK builds – so you can experiment the new language features in Java 13 like switch expressions, text blocks, etc.

Note that both OpenJDK and Oracle JDK made by Oracle, but they are distributed with different licenses.

 

1. Download and Install OpenJDK 13

OpenJDK 13 is a reference implementation of Java SE 13 which was officially release on September, 17th 2019. OpenJDK is free for personal, development and commercial use under GNU General Public License (GPLv2) without technical support.

Head to the official download page of OpenJDK 13: http://jdk.java.net/java-se-ri/13

You can see there are two binary builds: one for Oracle Linux and one for Windows 10 x64. For Windows, you will download the file openjdk-13+33_windows-x64_bin.zip. (~186 MB).

You should verify integrity of the downloaded file by comparing SHA256 checksum of the zip file with the one published on the website. On Windows, run this command:

certutil -hashfile openjdk-13+33_windows-x64_bin.zip SHA256

Then compare the checksum code generated with the SHA256 code on the website. If both are equal, you can proceed.

OpenJDK doesn’t have an installer, so you need to extract the downloaded zip file and update the system environment variables accordingly (see the instructions here):

JAVA_HOME = G:\JDK\OpenJDK\jdk-13

PATH = %JAVA_HOME%\bin;…

Or:

PATH = G:\JDK\OpenJDK\jdk-13\bin;…

Then type java –version command in a command prompt window to verify:

open jdk 13 version

You see, it prints ‘openjdk version “13” 2019-09-17’ which means you have successfully installed OpenJDK 13. Next, you may need to configure Eclipse IDE to run under the new JDK (see how). You can also watch the video below:

 

2. Download and Install Oracle JDK 13

Oracle JDK is a commercial build for Java Development Kit with paid technical support for long term. But you can use Oracle JDK for personal and development use at no cost.

To download Oracle JDK 13, go to its official Java SE 13 download page. You can see Oracle JDK comes with installers for different operating systems, as well as compressed archive files. For Windows, choose to download Windows x64 Installer.

Then you will download the jdk-13.0.2_windows-x64_bin.exe file (~160 MB), and verify SHA256 checksum for the downloaded file using this command:

certutil -hashfile jdk-13.0.2_windows-x64_bin.exe sha256

Run the Oracle JDK 13 installer program and you will see the following screen:

oracle jdk 13 setup

The setup for Oracle JDK 13 is simple, quick and easy. Just click Next twice to proceed the installation. However, you still have to update the JAVA_HOME or PATH system environment variables (see how) pointing to the new JDK:

JAVA_HOME = C:\Program Files\Java\jdk-13.0.2

And then type java –version command to check:

oracle jdk 13 version

Now, Oracle JDK 13 has been installed successfully on your computer.

Next, you may need to configure Eclipse IDE to run under the new JDK.

Watch the video:

 

Learn more:


About the Author:

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.



Add comment

   


Comments 

#8PRONAY KAMILYA2024-02-27 09:47
good web nice for mee
Quote
#7Nam2022-05-12 18:05
Hi Akhila,
JDK 13 is no longer recommended. You should use JDK 11 or 17.
Quote
#6akhila2022-05-12 09:10
i want to download jdk version13.0.01
Quote
#5shubham2022-03-23 11:13
heyyy!! shubham is there
Quote
#4Mufas musadhik2020-12-03 11:44
thx hsisoi isoosoos usisoosso
Quote