Setting the Java path in Talend

0

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.exepath.

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.