Upgrading the Grid JDK in a single server installation

To update the JDK in a single server installation:

  1. Download the zip file from the updated Corretto JDK.
    Caution: 
    Make sure that the zip file is downloaded. Do not download and run the MSI file, as it overwrites the older version of Corretto and interferes with the upgrade.
  2. Unzip the folder and copy every extracted file into this Corretto file path: C:\Program Files\Amazon Corretto
    Caution: 
    Do not delete the existing JDK folders.
  3. Complete these steps to update the PATH variable:
    1. Open the Control Panel and go to System and Security > System.
    2. Click Advanced System Settings.
    3. Click Environment Variables on the popup window.
    4. Find and select PATH in the list. Click the entry of the current JDK file path bin folder.
      For example: c:\program files\Amazon Corretto[currentjdkversion]\bin
    5. Click Delete.
    6. Click New. Enter the bin file path of the new JDK version.
      For example: c:\program files\Amazon Corretto[newjdkversion]\bin
    7. Click OK to save the information.
  4. Click the JAVA_HOME path and complete these steps:
    1. Open the Control Panel and click System and Security.
    2. Click Advanced System Settings.
    3. Click Environment Variables on the popup window.
    4. Find and select JAVA_HOME from the list.
    5. Input the JDK file path.
      For example: c:\program files\Amazon Corretto[newjdkversion]
    6. Click OK to save the information.
  5. Update the Grid JDK:
    1. Navigate to the [grid_root_installation_path]\bin folder.
    2. Run StopAllHosts.cmd
    3. Open the command prompt.
    4. Change the directory to grid_root_installation_path\bin
    5. Execute changejdk as an administrator and use the new file path to the new JDK as the parameter.
      For example: changejdk "c:\program files\Amazon Corretto\[newjdkversion]"
    6. Run StartAllHosts.cmd