# Java 17.x on Windows Machine

This article provides step-by-step instructions for installing Java 17.x (OpenLogic JDK) on a Windows system and configuring the required environment variables for successful Java application execution.

## Prerequisites

Ensure the following before proceeding:

* **Operating System**: Windows 10 or later.
* **Administrative Privileges**: Required for installation and configuration.
* **Basic Knowledge**: Familiarity with File Explorer and system settings.

## Installation Steps

### **Download Java 17 Installer**

* Download the Java 17 MSI installer from the link provided by your team or from the official source.
* For **OpenLogic JDK**, use the following link:\
  📥 [Download OpenLogic JDK 17](https://ovaledge.s3.us-west-1.amazonaws.com/scripts/packages/openlogic-openjdk-17.0.15.6-windows-x64.msi)

### **Run the Installer**

* Double-click the downloaded `.msi` file.
* This launches the installation wizard.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdqcmrLETPJmmfrUvAheTnUO7CLm1c7cRdD4CVI9WZkEOiNgdqXpS3LnKLKgpz-Q6hdlID5-vWWJeG1ACSlQNfwKZz8M-dvPEJQcMNCkRhusaAWOjY0WuGZoAQjZNXxBZdw3pwSNw?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>

### **Follow the Installation Wizard**

* Click **Next** to proceed.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeQljoSyLqkPn1lS2Qw3me5Mo_WrbpV8HuqgXP_23Fmi_k10iOfAPW5YM7YpG8Nb4FuPI6rZzhrl4XePAuSbd-3wH_CUSEzYmW8e9SRgt9FC5m2gR0wnkLfmj5isTWdrsbxjri88A?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
* Accept the **license agreement** and click **Next**.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdXdpEHRLMuA_AaF5lVEGwmQ9ImejuQND5zfJzsmCdpp4FVubzGJKgnKuLL-Tb_0KX30t5VNx5qDLmy9GYHi_K01n7R-o6D0M-4_5P8VriiS_G0cZ04lYgCLEA2Y_bwRq6vXLXaMA?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
* Choose an installation directory (default is recommended) and click **Next**.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfINhJw2Exomtgtsk33eRJ3JdsOWOaQiPweRVjtLi71L8XsjVglXzlxxdO2Yx68gQWNBv0wFlygMbTgDbIGYzHhnkdMzaQe_aSFqZlTlwmEq7nSstoQ7_qjRIcth4MRT2TLrHKZxA?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
* Click **Install** to begin installation.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc2e3Hl7GywStTksBuYUuQ8FjtAXUValDX8_j9hghrj-RcF08arK6ShzmdFYccdZN9ZVj2wpuIsVNiakwvcu93vEiGiA7jYze0svBopAOjTwsyi8HX4wNmfXhANPBTRkMsYXAfQsg?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
* After installation completes, click **Finish**.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfNALetc3BPXJARsybkBgoSiqvrgB6w4hwOtB58zbh-zkgzT_3sKQZYblYgAeC17kIREDcy1NVREshBV8i8a9kLOkacHZqK1SAFUOHpfObed93DCzqL9g8Pyp3--BeLq7D9WR1e?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>

### **Default Installation Directory**

* Java is typically installed at:

  ```
  C:\Program Files\OpenLogic\jdk-17.0.15.6-hotspot
  ```

### **Configure Environment Variables**

* **Set JAVA\_HOME**
  1. Open the Start Menu, search for **Environment Variables**, and open it.

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcm-RbyDzpb07_qKWCC6KCTjCe9z_FqZUiKLIwWnWKuwXYxBbt5t1_L39jXidrHQ9FGXAe5414NtbLN98PIEVVIp2yz1f8q_z4fokjJuqV3pS--EkDALGpSKk0HwK2rV8iGct2wsA?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
  2. In the **System Properties** window, go to **Advanced** → **Environment Variables**.

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcMqDwfvPBCDltCbvwEEfK478b7vc-es1KrwBFXF5YVr8H9lh_DAW3AwDl4D0fuZJD4LJgABlFeyOCcAYKc97_XpbaW5q34owiD16lEgn61z5oZ1seBI-5aOerv9-Dqe5Vqil7a3g?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
  3. Under **System Variables**, click **New** and insert:

     <figure><img src="https://1813356899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhTnkoJQml0pok9awFDhx%2Fuploads%2FnKR4pOsuwrTNLNhtpUGq%2Fimage.png?alt=media&#x26;token=9b7fb963-54df-4a06-aa08-ffec67a692e1" alt=""><figcaption></figcaption></figure>
  4. Insert the below values,&#x20;
     * Variable Name: `JAVA_HOME`
     * Variable Value:

       ```
       C:\Program Files\OpenLogic\jdk-17.0.15.6-hotspot
       ```

       <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcCcTYE7NhJ86jLhKFmF6-UmfmPnPuRh7xaZj0MtFpFapL5LPsKFNyd54LgVoiR63xYm3IJbvS35BbOnWwRIDoEmIFDA3J2VSU-I9M1waurCuddm51p8YbOfQ8zLgktnS1w-PLQZw?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
  5. Click **OK** to save.
* **Update PATH Variable**
  1. In the same Environment Variables window, under **System Variables**, select `Path` and click **Edit**.

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdQ0FFwUVZdzpR9bsykt_TUOrZLM2x1XnvXht0g7PlrY3pr4Ma4J5-KBi9ZB9ORD4Ms2gBplKXlygHKr_y7lQxnNS9pTpc4jez8iAASl-ZnY45PnwZE-3wUGQM8x0K0N4mvnKmkeA?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
  2. Click **New** and add:

     ```
     %JAVA_HOME%\bin
     ```

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfmXI9yGE13cQuazOY9rrSazzefMOGoDiIJU9vQC4sQbH4xTxCL7UWVTUZDLKw96lrmJhI_JcgSagRXfNwYW1NMf1wmMdJVzZ_Z89BRIMkItIdvKQ0Vjd4tUIN5sUF_6FWRqh4lRQ?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
  3. Click **OK** to save all changes.

### **Verify Installation**

* Open a new **Command Prompt** and run:

  ```bash
  java -version
  ```

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfgtcEKUO5F6T4uL6bT0ArAEd7Z0ufntEv6PVJoDjD_60yBDrJQBXypWdoEgrPHjkwFOj0voknBjTjici6e3N-sajSmCMBW5frvt20ajIpoggf8Z-u33zVvMmhTbVJLAUjtHIAl?key=K72rvCG_St9z6F5DKDJ2Ng" alt=""><figcaption></figcaption></figure>
* The output should confirm Java 17 installation.

***

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