# 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:

     ```bash
     sudo yum update -y
     ```

     \
     *Sample Reference Screenshot:*

     <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FgUptCfIjFAse5TpeGIon%2F0.jpg?alt=media&#x26;token=b565555a-d3b9-4e5e-a28a-30fb1c2ba9e9" alt=""><figcaption></figcaption></figure>

2. **Install Java 17 (OpenJDK)**
   * Install the **OpenJDK 17 Development Kit** using the following command:

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

     \
     *Sample Reference Screenshot:*

     <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FeyBJYs1jPXD46uPKr4jT%2F1.jpg?alt=media&#x26;token=1b21b55e-0871-4efc-915d-0d6592224be0" alt=""><figcaption></figcaption></figure>

3. **Verify the Java Installation**
   * Confirm that Java 17 has been successfully installed using the command below:

     ```bash
     java --version
     ```

     \
     *Sample Reference Screenshot:*

     <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FC0rDJTF6zJmBa8D2XO2n%2F2.jpg?alt=media&#x26;token=b8ba83bf-e006-47e3-9dbf-70325147130a" alt=""><figcaption></figcaption></figure>

***

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