Upgrading the Grid JDK in a single server installation
To update the JDK in a single server installation:
-
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.
-
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. -
Complete these steps to update the PATH variable:
- Open the Control Panel and go to System and Security > System.
- Click Advanced System Settings.
- Click Environment Variables on the popup window.
-
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
- Click Delete.
-
Click New. Enter the bin file path of
the new JDK version.
For example:
c:\program files\Amazon Corretto[newjdkversion]\bin
- Click OK to save the information.
-
Click the JAVA_HOME path and complete these steps:
- Open the Control Panel and click System and Security.
- Click Advanced System Settings.
- Click Environment Variables on the popup window.
- Find and select JAVA_HOME from the list.
-
Input the JDK file path.
For example:
c:\program files\Amazon Corretto[newjdkversion]
- Click OK to save the information.
-
Update the Grid JDK:
-
Navigate to the
[grid_root_installation_path]\bin
folder. -
Run
StopAllHosts.cmd
- Open the command prompt.
-
Change the directory to
grid_root_installation_path\bin
-
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]"
-
Run
StartAllHosts.cmd
-
Navigate to the