nordvpn

How to install openjdk 16 on Ubuntu

Install OpenJDK on Ubuntu

In this tutorial, I will show you how to install OpenJDK 16 on Ubuntu. The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), and other tools needed in Java development.

1. Pre-requisites

  • Ubuntu 19  installed with root access

Read Also: Install postgreSQL 11 on Debian 10 (Buster)

Read Also: Install OpenJDK 8 on Ubuntu 16

Read Also: Install OpenJDK 13 on Mac 

Install OpenJDK 16

Here we will use apt to install Java 16 on Ubuntu

$ sudo apt install openjdk-16-jdk

2. Check java Version

Now after installing open JDK check the version using the following command

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

Read Also: How to install Java 11 on CentOS 7

If you have any issues using this tutorial please feel free to comment below.

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

Buy me a coffeeinstall openjdk 16 ubuntu

 

Source: OpenJDK

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