# Java JDK 17.0.15+6 on Windows Machine

Upgrading the Java Development Kit (JDK) is critical for maintaining **security**, **performance**, and **compatibility** with modern Java applications.\
This document provides step-by-step instructions for upgrading Java to **JDK 17.0.15+6** on a Windows machine, reconfiguring environment variables, and reintegrating the JDK with an existing **Apache Tomcat** service.

## Prerequisites

Before starting the upgrade, ensure the following:

* **Administrator access** to the Windows machine.
* **Backup of current Tomcat configuration**, including Java Options and Heap Size.
* **Tomcat service is stopped** before upgrade.
* **Internet access** available to download the JDK installer.

## Upgrade Process Steps

1. Stop and Backup Tomcat Configuration
   * Open **Services** → Locate the **Tomcat service** → Right-click → **Stop**.<br>

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcnZuhGZfkv8PehXFInX5BHZCB0c4Fh3A5xvaaT55Y9ZzNuciVcZa6WJ03OcHX3FLhawQV0mAc9VR8HaSdUMaIviVrcQ8wK9PQOIQTOJc3Iinf8GYf6I-N17lgrxXhfR_PD2cNWeg?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
   * Navigate to the **Tomcat `bin` directory**.<br>

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcSc3wXkYzOShX1-B4lonLSXRdMPUIHkVduIXBlbIDZGkIe8AFAZ_nTbyVv6pC7XL8JUmmdrWFjzHYPvJQTXymRZmitt1DBncnFB6_wZXmdykDIASKJG0AbeYoXd64BezBAgX1Hew?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
   * Open **Command Prompt** in that directory and run:

     ```cmd
     tomcat10w.exe //ES//<TomcatServiceName>
     ```

     \
     *Sample Reference Screenshot:*

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfp9HgGgSiMu88LanZ1JmK_39Hp-B5x6UWDxUhnbCkUPMiRXZ7kE4NlM91aTzBSSBZVmIa-z5CpQJpYuCkiEvs9SLZjC1NlTo_uwnhA1I7H3ny5Tw6Nrz1TB6OYD_x02byLcpA2?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

     \
     *(Replace `<TomcatServiceName>` with your actual Tomcat service name)*.
   * In the **Java tab**, note down:
     * Java Options
     * Heap Size values\
       \&#xNAN;*(Copy to a Notepad for later reference).*
   * Uninstall the existing Tomcat service:

     ```cmd
     service.bat remove <TomcatServiceName>
     ```

     \
     \&#xNAN;*Sample Reference Screenshot:*

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

2. Uninstall Previous JDK Version
   * Open **Control Panel** → Programs → Programs and Features.
   * Locate the existing **Java/JDK installation**.
   * Right-click → **Uninstall**.<br>

3. Download and Install JDK 17.0.15+6
   * Download the installer:\
     [OpenLogic JDK 17.0.15+6 MSI (Windows x64)](https://ovaledge.s3.us-west-1.amazonaws.com/scripts/packages/openlogic-openjdk-17.0.15.6-windows-x64.msi)
   * Run the **.msi installer**.
   * Follow the setup wizard to complete the installation.<br>

4. Set Environment Variables
   * Press **Windows Key** → Search for **Environment Variables** → Open **Edit the system environment variables**.<br>

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcfwADKKNk7hWARvMfOuvjuTiOx8epfaK7PliVZAufZvjFzMQ8KW6a4efKJTlMRFnKKdgtDL_yaM7nh737b9sNG79YEpObarpyJRGS3hAAWcUXdEoLmOG4BvWfzUQt1dVN6HF3z1w?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
   * Click **Environment Variables**.

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc-DneOkByAHhFFl6AdK0FiI9GuLkFPu5mB9j4dv-eeZKre5KZkLWKK4wCbAIvl33m4J-c5m9IYE4sAeXr63yhe5O6yT0Hn_6APEmvAwlFEZCrQgiT1QmdtqewhKqJ7IZMVbL3EsA?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

     * Under **System Variables → New**:
       * **Variable Name:** `JAVA_HOME`
       * **Variable Value:**

         <pre><code><strong>C:\Program Files\OpenLogic\jdk-17.0.15.6-hotspot
         </strong></code></pre>

         <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf6dQELdG18b2CFZZC9MveEzTi8_LaOyvGhIDUkLHqBfVIpMi9MWR0sHfUdM9r-ab_j_eJqoJKwgfuDH3k1-bzJLoGphVR7cpdkH5uY1A4BpqTHojdBdRUdZ2lf32bVHT6v7PhPoA?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

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

         <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdZ5IbU9qbCoQxtHmnHoZOJ-cAZresS61QFkxRy9K1syUGl4Mx8S5hJsL-N6aSbmBiA2zrXfsWaRokrowIQU8fKNjo2BhCS8MOtp-RPtHoeNBIT8dYW4yqOq90OC00qUufP2ncpbQ?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
     * Under **System Variables → Path → Edit**:\
       Ensure the following entry exists:

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

       <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeYO4_N3q7HI2HmCTcJMM_uu8QU86Ua5XQU23CHyyBG-cqIIx89f1p3CRWbZQhPJTl3qIj1NAY7tanRw-cj9NX9n6Xk5zj7h64hzKt5EeAS-ZpC44bH2ij6eN4-QlMWBW27SsTVow?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

       <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXex6s-qn5d6ESItkbdA7xsbf_m74pqoUghV3X0kNxEAi5p3t-IcRIByWacpRl8KoytGBGmJ2GhUoiGXQi4gTAoUESVGsmK-9EfVIl9f0bi3SsMLJstaEv5Y4_9EuMu6aUP1KFeVPQ?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

5. Verify Java Installation
   * Open **Command Prompt** and run:

     ```cmd
     java -version
     ```
   * Expected output:

     ```
     openjdk version "17.0.15" 2024-04-16
     OpenLogic OpenJDK Runtime Environment ...
     ```

     \
     \&#xNAN;*Sample Reference Screenshot:*

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcjfWN-LQGBZgm1DfsPgjOswHdpAm3MOYBdyyvrPqXPPSE69xt8aN1KrNUni-CuK2bsdXzxXQegGyvi_ZAy2-kCUH8dVKNOT5NlyWiPxXhT_MAibX-LED00_2dSu2OjnzEMsCUn?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

6. Reconfigure Tomcat Service
   * Navigate to Tomcat’s `bin` directory:

     ```cmd
     cd C:\ovaledge\apache-tomcat-10.1.40\bin
     ```
   * Reinstall the Tomcat service:

     ```cmd
     service.bat install <TomcatServiceName>
     ```
   * Open Tomcat configuration:

     ```cmd
     tomcat10w.exe //ES//<TomcatServiceName>
     ```

     \
     \&#xNAN;*Sample Reference Screenshot:*

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdzYlqebcOj3sfFWAMJCr_QhFsstcroZBMAevbrQnmIL1wY-p6qHL3i5QRBDgX7tTmx-eMfEGWQNRCYWYQEguG5Xve8G8rcXJTovoLbgIucKq9947f6HSm5KtKCY7ggdUBjk6IV?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
   * Under the **Java tab**:
     * Restore previously saved **Java Options** and **Heap Size**.
     * Update paths if necessary (e.g., externalized `log4j.properties`).<br>

       <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeHqYCbRD5C7e1C_SS-CMn_ncTsptLp77UUBFTEiPGTuWPxTzyYCL30aCTc_gOFYIkft0hu9ILyQLWI6rwmKeCGAVm-QSNghZJxJ9q_-jxJOZrimK9QPMBc8W-2em8ojiZdqeErbg?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
   * Under the **General tab**:
     * Set **Startup Type → Automatic (Delayed Start)**.<br>

       <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdmmwO-7tjBVHENyKSEzacc43F6bFMA-0ZReouThVPlZyHcBnsA5GgHvlk98t19wKVHXb6-axiD4xaqsb5gQs40FQ4zdSVPmenUHxYutpptqitfSpkGuMND1PqqId2F_dA-6gabxQ?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>
   * Return to **Services** → Locate Tomcat service → **Start**.<br>

     <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc-R0KEXldX4bvQ3mm_Sfo2tT8lR4fI3kwnFAaBO6QlalFOpeEhC9fRrj_ARUh3FU73BmLaaDFt2sjEd5fuplQ_Ao79W89tLunCivlpS5mcDxZo-pJv2MLZxmqdm5n6TuEFIez4Mg?key=wsJinZRbAIZ4GlPtfAYaRA" alt=""><figcaption></figcaption></figure>

## Validation

After Tomcat is started:

* Review **catalina.out** or **stdout/stderr logs** for errors.
* Confirm application accessibility through the web interface.
* Verify environment variables:

  ```cmd
  echo %JAVA_HOME%
  ```
* Ensure it points to the new JDK directory.

***

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