Download and Install JDK 13 (OpenJDK and Oracle JDK)
- Details
- Written by Nam Ha Minh
- Last Updated on 21 April 2020   |   Print Email
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:
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:
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:
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:
- 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
JDK 13 is no longer recommended. You should use JDK 11 or 17.