Installing Java 11 on ubuntu 22.04 LTS


Java is a high-level, object-oriented programming language developed by Sun Microsystems (now owned by Oracle) in the mid-1990s. It is designed to be platform-independent, meaning that Java programs can run on any computer or operating system that has a Java Virtual Machine (JVM) installed.


  • Basic knowledge of Linux commands.
  • Up and running Ubuntu 22.04 Machine
  • Root permission

In this post, We will show you how to install Java 11 on ubuntu 22.04 LTS Linux machine.

Step 1: Run System Update

We need to 1st update and upgrade the current ubuntu repository to avoid difficulties situations, Use the given command for the same.

To update ubuntu repository.

sudo apt-get update

To upgrade packages.

sudo apt-get upgrade -y

Step 2: Install Java 11

We are ready to install Java 11 package on ubuntu machine by following command.

sudo apt-get install openjdk-11-jdk -y

Step 3: Check Java Version

To check JAVA version after the installation process, We need to execute the given command.

java -version


We have successfully installed JAVA 11 on ubuntu 22.04 LTS, if you still have questions, please post them in the comments section below.


Installing Java 11 on ubuntu 22.04 LTS

9 thoughts on “Installing Java 11 on ubuntu 22.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top