# Java 21 on Windows Machine

This article describes the steps to install Java 21 on a Windows machine for use with OvalEdge deployments. It includes the download process, installation steps, environment variable configuration, and validation procedure.

The instructions follow the standard format used in OvalEdge installation and deployment documentation to ensure consistency and ease of execution.

## Prerequisites

Before starting the installation, ensure the following prerequisites are met:

* Administrative access is available on the Windows machine.
* Internet access is available to download the installation package.
* Any previously installed unsupported Java versions are removed, if applicable.
* The Java installer provided by the OvalEdge team is available.

## Install Java 21 on Windows

1. Download the [Java 21 installer](https://ovaledge.s3.us-west-1.amazonaws.com/scripts/8x_artifacts/openlogic-openjdk-21.0.10%2B7-windows-x64.msi) provided by the OvalEdge team.

2. Open the downloaded .msi file.

   <figure><img src="/files/e8rmrgvE5nuF3PuNXEBf" alt=""><figcaption></figcaption></figure>

3. In the installation wizard, click **Next**.

   <figure><img src="/files/FjdXA117y2va2DpajYI0" alt=""><figcaption></figcaption></figure>

4. Accept the license agreement and click **Next**.

   <figure><img src="/files/4fHRbs4ONvppA8jfSKUf" alt=""><figcaption></figcaption></figure>

   1. Keep the default installation path and click **Next**.
   2. Click **Install** to begin the installation.
   3. After the installation completes, click **Finish**.

### Configure the JAVA\_HOME Environment Variable

1. Navigate to the Java installation directory.\
   Example: `C:\Program Files\OpenLogic\jdk-21.0.10.7`

   <figure><img src="/files/2JfWoEczVrcPUe9aq7jK" alt=""><figcaption></figcaption></figure>

2. Copy the installation path.

3. Open the Windows Environment Variables settings. Under System Variables, click New.

   <figure><img src="/files/6BWJgKmT2dz9NmNaQdjp" alt=""><figcaption></figcaption></figure>

4. Add the following values:

   1. Variable Name: `JAVA_HOME`
   2. Variable Value: `C:\Program Files\OpenLogic\jdk-21.0.10.7`

5. Edit the Path system variable.

6. Add the following entry:

   ```
   %JAVA_HOME%\bin
   ```

7. Click **OK** to save the changes.

### Validate the Installation

1. Open Command Prompt.

   <figure><img src="/files/PuaMFjRTckAfr5Z7eCDw" alt=""><figcaption></figcaption></figure>
2. Run the following command:

   ```
   java -version
   ```
3. Verify that the installed version displays information for Java 21.   \
   Example:

   ```
   openjdk version "21.0.10"
   ```

***

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


---

# Agent Instructions: 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:

```
GET https://docs.ovaledge.com/release8.1/deployment-and-maintenance/installation/java-21-on-windows-machine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
