Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.

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

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

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

Last Update:

Jan 31, 2024 4:27:10 AM

Updated By:

Sonja_Bauernfeind

Created date:

Apr 1, 2021 5:57:29 AM

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.

Resolution

For Talend 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.

Environment:

Talend Data Integration version 6.21.

Labels (2)
Comments
Denis5
Employee
Employee

Denis5_0-1706337404199.png

  1. There is an issue in the article formatting as the -vm parameter should be set on 2 lines as sepcified.
Sonja_Bauernfeind
Digital Support
Digital Support

Fixed!

Version history
Last update:
‎2024-01-31 04:27 AM
Updated by: