How to install OpenJDK 13 on Mac OS

In this tutorial, I will show you how to install OpenJDK 13 Mac. You have to pay for Oracle JDK so it’s better to use OpenJDK.

OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).[1] It is the result of an effort Sun Microsystems began in 2006. The implementation is licensed under the GNU General Public License (GNU GPL) version 2 with a linking exception. Were it not for the GPL linking exception, components that linked to the Java class library would be subject to the terms of the GPL license.

Install OpenJDK 13 Mac

Read Also: How to install Java 8 on Ubuntu 18.04

Read Also: How to install Java 8 on Debian

Read Also: How to install Java 10 on Mac using brew

1. Download the Binary

Download the binary using the following link or using wget.

wget https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13%2B33/OpenJDK13U-jdk_x64_mac_hotspot_13_33.tar.gz

Read Also: How to uninstall/remove Java 10 from Mac

2. Extract the binary

After downloading the binary then go into the directory where you have downloaded binary and extract it

tar -xf OpenJDK13U-jdk_x64_mac_hotspot_13_33.tar.gz

So, now we have extracted the binary.

3. Add Java to PATH

Now we just need to add this java at PATH

export PATH=$PWD/jdk-13+33/Contents/Home/bin:$PATH

Now Java has installed properly.

4. Check Java Version

Now let’s check the java version.

# java -version
openjdk version "13" 2019-09-17
OpenJDK Runtime Environment AdoptOpenJDK (build 13+33)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)

Please let me know how you liked the tutorial.

Leave a Reply

Your email address will not be published.


*