> 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/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="/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
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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
