nordvpn

How to install OpenJDK 12 on Ubuntu

Install OpenJDK 12 on Ubuntu 19

In this tutorial, I will show you how to install OpenJDK 12 on Ubuntu 19. 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)

Install OpenJDK 8 on Ubuntu 16

Read Also: Install OpenJDK 13 on Mac 

Here we will use apt to install Java 12 on Ubuntu 19

$ sudo apt install openjdk-12-jdk

2. Check java Version

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

$ java -version
openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+9-Ubuntu-119.04)
OpenJDK 64-Bit Server VM (build 12.0.2+9-Ubuntu-119.04, mixed mode)

Read Also: How to install Java 11 on CentOS 7

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

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