Clean up old Java versions and Install the latest

This article explain the process to find the older version of java, uninstalling it and updating to the latest one.

 

  1. Download the Java uninstall tool from - https://www.java.com/en/download/uninstalltool.jsp
  2. Run the downloaded application and click on the Agree button

 

 

  1. If your version is up to date then you will be getting a notification like this. You can Click on NO and no need for any further steps.

 

 

  1. If you are having an old version of Java, that will be listed in the application. You can select all the older versions and uninstall them.

 

 

  1. This application will ask you to clear the cache and you can click on the Yes button

 

 

  1. Once the uninstall is completed you can see a final status like below. To download the latest version you can click on the Get Java button or download it from - https://java.com/en/download/

 

 

  1. After the download, please run the setup and click on the install button,

 

 

  1. After the successful install, you will get a window like this.

 

 

  1. Now the Java version will be the latest one.

 

  1. You can change Automatic Update Settings to check for new versions,

    1. Open Configure Java
    2. Click the Update tab to access the settings.
    3. To enable Java Update to automatically check for updates, select the Check for Updates Automatically check box.
       
       https://www.java.com/content/published/api/v1.1/assets/CONTC362CBBCEB22469B81A3F293AFAAAEE3/native?cb=_cache_a204&channelToken=1f7d2611846d4457b213dfc9048724dc

 

  1. Install the New Update

 

    1. When a new Java update is available, a tooltip balloon appears on your Windows desktop. To install the new update, click on the notification dialog.
       
       https://www.java.com/content/published/api/v1.1/assets/CONT9492FC1242BF402F98A4C6CDF6853826/native?cb=_cache_a204&channelToken=1f7d2611846d4457b213dfc9048724dc
       
       
       https://www.java.com/content/published/api/v1.1/assets/CONTB3D5A4B9B8AA4129ACFB18C00F900CD2/native?cb=_cache_a204&channelToken=1f7d2611846d4457b213dfc9048724dc
        
    2. The Update Available dialog appears. To start the installation, click Update.
       
       https://www.java.com/content/published/api/v1.1/assets/CONTB2D6E8C9F4304A7F89986362736FB752/native?cb=_cache_a204&channelToken=1f7d2611846d4457b213dfc9048724dc

 

    1. When the installation is complete, a dialog box appears. Click Finish to complete the installation.

 

Update JDK

1. Uninstall the existing JDK from the control panel

2. Download the latest JDK for Windows (x64 Installer) from - https://www.oracle.com/java/technologies/downloads/

3. Install the downloaded setup

4. Set the Java Home using the new JDK path

You can set this up by following the below steps.

1. Search for Environment Variables.
2. Click the Environment Variables button.
3. Under System Variables, click New.
4. In the Variable Name field: JAVA_HOME if you installed the JDK (Java Development Kit) and Variable Value: Path to JDK folder (C:\Program Files\Java\jdk-18.0.1.1)


5. Click OK and Apply Changes as prompted.
You can verify this by executing %JAVA_HOME% in RUN

5. Make sure eMAM Upload Manager is running after this change

Possible issues and troubleshooting

Sometimes eMAM Upload Manager won't get started after updating the JDK. It might be referring to the old JVM.DLL. You will get an error like, Failed to load JVM DLL 'C:\Program Files\Java\jdk1.8.0_221\jre\bin\server\jvm.dll', home in the Upload Manager logs files.

Please follow the below steps to fix it,
    
    a. Open Registry
    b. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\eMAMUploadManager\Parameters\Java
    c. Set the Jvm with the new jvm.dll path
        
   
Please drop an email to support@emamonline.com if you are having any queries.