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 provided by the OvalEdge team.

  2. Open the downloaded .msi file.

  3. In the installation wizard, click Next.

  4. Accept the license agreement and click Next.

    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

  2. Copy the installation path.

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

  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:

  7. Click OK to save the changes.

Validate the Installation

  1. Open Command Prompt.

  2. Run the following command:

  3. Verify that the installed version displays information for Java 21. Example:


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

Last updated

Was this helpful?