> 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-on-ubuntu-22.04+.md).

# JAVA 17.x on Ubuntu 22.04+

This article provides a comprehensive guide for installing **Java version 17** on an Ubuntu 22.04 system. It covers the prerequisites and a step-by-step installation process.

## Prerequisites

Ensure the following requirements are met before proceeding:

* **Operating System**: Ubuntu 22.04 or later
* **Privileges**: A user account with `sudo` privileges
* **Network**: An active internet connection for accessing official package repositories

## Installation Steps

1. **Update the Package Index**
   * Update the local package index to ensure access to the latest available software:

     ```bash
     sudo apt update
     ```

     \
     *Sample Reference Screenshot*

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_3zrF3Umpr7nGneq8gN1KHc3hA9GsPQRAlUxAwImpsfyTHsIlRujTsgZ45ckaCVaTfoz0imBbUPOGfN3oskmLffxFrP0ZpGQZbXSTY06qzSJqzrq6PzG2nO2Kfv5ctuvmsm49?key=kk54MYqZ_DGVUBBTkLvJWA" alt=""><figcaption></figcaption></figure>

2. **Install Java 17**
   * Install the Java 17 package using the following command:

     ```bash
     sudo apt install -y openjdk-17-jdk
     ```

     \
     *Sample Reference Screenshot*

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfH914qRxxmaO1f3j8vUtRRJ8xtw-KDC2NqFgREXFy1o2AT1rtt26tTeN39A7dCUqvys9vCNvor-vW6laoyQp69UnfL2HTmLSX-7DWtQVnjfgDSFLaoFqawwlT7RQM8UUDHSlmhwg?key=kk54MYqZ_DGVUBBTkLvJWA" alt=""><figcaption></figcaption></figure>

3. **Verify the Installation**
   * Confirm that Java 17 is installed and accessible in the system path:

     ```bash
     java -version
     ```

     \
     *Sample Reference Screenshot*

     <div align="left"><figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe2Q3ahurg_63tRCyeOjCLx4gGbu2QsdJKMlYYkrXYhpnf6aWdOGZ-pp29aKA69YZKjfEBnxfrkiv2rfawdENjc3MwZQmCl0ZOaO5GQOH138ZsXoszMCNcixSFaNTm8H0ndpMdCFQ?key=kk54MYqZ_DGVUBBTkLvJWA" alt=""><figcaption></figcaption></figure></div>

***

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/release7.2/deployment-and-maintenance/installation/java-17.x-on-ubuntu-22.04+.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.
