Where to define JAVA_HOME for Studio / TAC / JobServer / CommandLine

Talend Version          6.2.1

Summary

Where to set up the Java version used in Data Integration.
Additional Versions  
Key words DI Java version
Product Talend Data Integration
Component Talend Administration Center
Article Type Configuration
Problem Description You may want to upgrade your Talend DI version, but require several versions to run on your machine simultaneously. The different versions will run on different JVM versions, so using the global JAVA_HOME variable is not an option. You must point the different DI elements to specific Java installs.
Problem root cause  
Solution or Workaround

For Studio

  1. Stop Studio.

  2. In the installation folder of your Studio, where the executable you are using is located, edit the ini file that has the same name as your executable. For example, if you are starting Studio with Talend-Studio-win-x86_64.exe, edit Talend-Studio-win-x86_64.ini.

    At the beginning of the file, add two lines:

    -vm
    JDK path

    Your updated file might look like this:

    -vm
    C:\Program Files\Java\jdk1.8.0_101\bin
    -vmargs
    -Xms512m
    -Xmx4G
    -Dfile.encoding=UTF-8

For CommandLine

  1. Stop the CommandLine service.
  2. Edit the file cmdline installation\TalendServices\conf\wrapper.conf.
  3. Find the line starting with wrapper.java.command.
  4. Change the path in that line to point to the Java executable you wish to use. It should look similar to this:

    wrapper.java.command = C:/Java/jre1.8.0_101/bin/java.exe
  5. Make sure other instances of the key wrapper.java.command are commented out by having a # at the start of the line.
  6. Open Regedit, and under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\talend-cmdline-6.2.1, edit the key ImagePath to replace the first argument with your desired java.exe path.

For JobServer

  1. Stop the JobServer service.
  2. Edit the file jobserver installation\TalendServices\conf\wrapper.conf.
  3. Find the line starting with wrapper.java.command.
  4. Change the path in that line to point to the Java executable you wish to use. It should look similar to this:

    wrapper.java.command = C:/Java/jre1.8.0_101/bin/java.exe
  5. Make sure other instances of the key wrapper.java.command are commented out by having a # at the start of the line.
  6. Open Regedit, and under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\talend-rjs-6.2.1, edit the key ImagePath to replace the first argument with your desired java.exe path.

For TAC

  1. Stop TAC.
  2. Find the name of the TAC service: in the Windows Services interface, double-click the Talend Administration Center service to open its configuration, and note the Service name shown in the General tab.
  3. Open a command prompt as an administrator.
  4. Navigate to the tac > apache-tomcat > bin folder, for example C:\Talend\6.2.1\tac\apache-tomcat\bin.
  5. Run the following command, using the service name you found earlier, in this case talend-tac-6.2.1:

    tomcat8w.exe //ES//talend-tac-6.2.1

    This opens a configuration GUI.

  6. In the Java tab, modify the Java Virtual Machine to point it to your desired installation - it must point to the jvm.dll in the server folder.
JIRA ticket number  
Version history
Revision #:
4 of 4
Last update:
‎07-10-2017 02:06 PM
Updated by:
 
Tags (1)