# 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="/files/9RxCWhn7F61RElY1KC30" 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="/files/KFsH1saEY141N8bxk8Aw" 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="/files/TmksoS4ZfTQNtcKxiLZz" alt=""><figcaption></figcaption></figure>

***

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ovaledge.com/deployment-and-maintenance/installation/java-17.x-openjdk-on-rhel-8+.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
