Upgrading Java on Windows - 7.3

author
Talend Documentation Team
EnrichVersion
7.3
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Installation and Upgrade
EnrichPlatform
Talend Studio

Upgrading Java for all Talend services on Windows

You can upgrade Java to avoid security issues. This procedure will go through the differents steps required for minor or major updates of Java on Talend services. It can also be followed for minor downgrades.

Before you begin

  • Retrieve the update_java.bat file from the Downloads tab of the menu located in the left panel of this page.
  • Retrieve the sed.exe file from the Downloads tab only if there is no such file in the utils folder in the Talend home folder.

About this task

This procedure applies to all Talend services, except Talend Remote Engine.

Talend Data Quality Portal does not support Java 11.

Procedure

  1. Place the update_java.bat file in the utils folder in the Talend home folder.
  2. If you downloaded the sed.exe from the Downloads tab, place it in the utils folder.
  3. Install the new Java version according to the Compatible Java environments page.
  4. In Windows search tab, type in services.msc and open the Microsoft Management Console application.
  5. Look for the list of Talend services, right-click each of them and select Stop.
    The last services to be stopped should be Talend Administration Center, Talend Identity and Access Management followed by Kafka, Zookeeper and MongoDB.
  6. Go to System Properties > Advanced > Environments Variables.
  7. Update the JAVA_HOME environment variable and the PATH variable.
    For more information on how to set up Java environment variables, see Setting up the Java environment variable.
  8. Open the command prompt application.
  9. Type in echo %JAVA_HOME% and press Enter. The value displayed is the new value set.
  10. Open update_java.bat with a text editor.
  11. Locate the variables in the script and set them as follows:

    "TALEND_HOME=C:\<Talend_home_folder>" (for example: set "TALEND_HOME=C:\Talend\7.3.1")

    "PROD_VER=<Talend_version>" (for example: set "PROD_VER=7.3.1")

  12. As a superuser, run update_java.bat. This script will replace the hard-coded path to Java with the new values in your installation.
  13. Restart your computer or start all Talend services manually from the service.msc application.

Results

All Talend services are now using the new Java version.