Install Java on Linux Mint 20.3 - Step by step guide ?

Java is one of the most commonly used programming languages in the industry these days. This language was initially developed by Sun Microsystems and was later acquired by Oracle Corporation. 

Here at LinuxAPT, we shall look into how we can install Java on a Linux Mint 20.3 system.

Steps to Install Java on Linux Mint 20.3:

1. Check the Current Version of Java

Here you need to check if Java is already there on your system or not by executing the below command:

$ java --version

This command reveals whether Java is already present on our Linux Mint 20.3 system or now.

If not, then you can go ahead and install Java on the system.

2. Install the Latest Version of Java

To install the latest version of Java on Linux Mint 20.3 i.e. 17.0.1, you will have to run the below command:

$ sudo apt install openjdk-17-jdk

3. Verify if the Latest Version of Java has been installed on your System or not

Now, you need to run the version command again for verifying that you have successfully upgraded to the latest version of Java:

$ java --version

How to uninstall Java from Linux Mint 20.3 ?

If you intend to remove Java from your Linux Mint 20.3 system, then you simply need to execute the below command:

$ sudo apt-get purge --autoremove openjdk*

[Need help in fixing Linux Mint system issues ? We can help you. ]

This article covers how to install the latest version of Java on your Linux Mint 20.3 system and also the method to upgrade Java if you already have an older version of it installed on your system.

Related Posts