# JAVA 17.x on Ubuntu 22.04+

## Introduction

This document 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>
