Linux Mint

How to Install Java in Linux Mint 20.3

Java is one of the most widely used high level programming languages available in the market. Along with that, this programming language is extremely easy to learn and once you get your hands on it, it will help you a lot with the complex programmatic tasks. In this guide, we will learn to install the Java programming language on a Linux Mint 20.3 system together.

How Can I Install Java in Linux Mint 20.3?

You can install Java in your Linux Mint 20.3 system in just three simple steps that are explained in the following:

Step 1: Install the Java Development Kit

First, you need to install the Java Development Kit (JDK) on your system with the command that follows:

$ sudo apt-get install default-jdk

Step 2: Install the Java Runtime Environment

Now, you can also install the Java Runtime Environment (JRE) by executing the following command:

$ sudo apt-get install default-jre

Step 3: Check the Installed Version of Java

Once both the JDK and JRE are installed successfully in your Linux Mint 20.3 system, you can confirm the Java installation by checking its version with the following command:

$ java --version

The following image confirms the installation of Java in our Linux Mint 20.3 system:


By following the three simple steps explained, you can quickly install the Java programming language in your Linux Mint 20.3 system and start coding with this high level programming language right away.

About the author

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.