JAVA 17.x (OpenJDK) on RHEL 8+

This article outlines the step-by-step procedure for installing Java 17 (OpenJDK) on Red Hat Enterprise Linux (RHEL) 8/9 systems. It includes prerequisites, installation instructions, and validation steps required to prepare the environment for Java-based applications.

Prerequisites

Ensure the following before proceeding:

  • A RHEL 8 or RHEL 9 system.

  • A user account with sudo privileges.

  • An active internet connection is required to access the official Red Hat Enterprise Linux (RHEL) repositories.

Steps Involved

  1. Update the Package Manager

    • Log in to the VM and run the following command to update the package manager:

      sudo yum update -y

      Sample Reference Screenshot:

  2. Install Java 17 (OpenJDK)

    • Install the OpenJDK 17 Development Kit using the following command:

      sudo yum install java-17-openjdk-devel -y

      Sample Reference Screenshot:

  3. Verify the Java Installation

    • Confirm that Java 17 has been successfully installed using the command below:

      java --version

      Sample Reference Screenshot:


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

Last updated

Was this helpful?