nordvpn

How to install OpenJDK 16 on Mac

In this tutorial, I will show you how to install OpenJDK 16 Mac. OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE). 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 16 on Mac

Requirements

Read Also: How to install OpenJDK 11 on Mac OS using brew

Read Also: How to install OpenJDK 13 on macOS

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

Read Also: Install OpenJDK 8 on Mac using brew (AdoptopenJDK)

1. Brew tap

First of all, we need to tap a brew repo. Execute the following command:

brew tap AdoptOpenJDK/openjdk

The above will add more repositories to brew.

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

2. Install OpenJDK 16 Mac

After adding tap, let’s install OpenJDK using brew.

brew install --cask adoptopenjdk16

So, now we have installed Java 16, we can check the installation with the following command.

3. Check JDK Version

Now we can check the JDK version.

~ java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (build 16.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (build 16.0.1+9, mixed mode, sharing)

Now java 16 has been installed properly.

4. Java Location

Now let’s check the java path.

# which java
/usr/bin/java

Please let me know how you liked the tutorial. Please share the article with your friends and colleagues.

If you like this tutorial please consider buying me a coffee!

Buy me a coffeeinstall openjdk 16 mac

You might also like: 

Show current release version in Capistrano – installvirtual

How to connect raspberry pi to WiFi without a monitor

Install OpenJDK 8 on Mac using brew (AdoptopenJDK)

 

Leave a Reply

Your email address will not be published.


*



The reCAPTCHA verification period has expired. Please reload the page.

48-Hour Flash Sale! Courses from just $10.99