JAVA 21.x on Ubuntu 22.04+

This article provides the steps to install Java 21 on an Ubuntu machine. The procedure includes updating system packages, installing the required Java Development Kit (JDK), and verifying the installation. This setup is required for applications and connectors that depend on Java runtime support within the OvalEdge platform.

Prerequisites

Ensure the following requirements are met before proceeding:

  • Operating System: Ubuntu 22.04 or later

  • Privileges: A user account with sudo privileges or root access to the machine

  • Network: An active internet connection for accessing official package repositories

Installation Steps

  1. Update System Packages

    1. Update the package repository and upgrade existing packages to the latest versions.

      sudo apt update
      sudo apt upgrade -y
  2. Install Java 21

    1. Install OpenJDK 21 from the default Ubuntu repositories.

      sudo apt install openjdk-21-jdk -y
  3. Verify Installation

    1. Verify that Java is installed successfully by checking the version.

      java -version
    2. Expected Output:

      openjdk version "21.x.x"

Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?