> For the complete documentation index, see [llms.txt](https://docs.ovaledge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ovaledge.com/release7.2/deployment-and-maintenance/installation/java-17.x-openjdk-on-rhel-8+.md).

# 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&amp;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&amp;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&amp;token=b8ba83bf-e006-47e3-9dbf-70325147130a" alt=""><figcaption></figcaption></figure>

***

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
