'java.lang.NoClassDefFoundError: com/mercury/javashared/agentloader/AgentBootstrap' error when launching Talend Studio for the first time

Problem Description

After installing Talend Studio, and launching it for the first time, Studio fails to open, and you get the following error message:

java.lang.NoClassDefFoundError: com/mercury/javashared/agentloader/AgentBootstrap


Root Cause

HP UFT (Unified Functional Testing) / HP QTP (Quick Test Professional) application is installed on the same machine, and this prevents the launch of eclipse based platforms, such as Talend Studio. Thus, you get this error when you open Talend Studio because it sets below environment variables that don't allow eclipse based platforms to open properly.


-Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar (similar file path in the machine)




There are two possible solutions:

  1. Uninstall HP UFT/QTP and remove the environment variables, IBM_JAVA_OPTIONS and JAVA_TOOL_OPTIONS.

  2. If you need both applications on the same machine, another option is to create a batch file to clear the values of the environment variables that are causing an issue when launching Talend Studio. You must run this file every time you launch Studio. However, running this file will not delete the values from the environment variables so you can launch UFT(QTP) on the same machine. To create the batch file, follow the steps below:

    1. Open Notepad++.
    2. Add the following content:

      @echo off
      Setx _JAVA_OPTIONS ""
      Setx IBM_JAVA_OPTIONS ""
      Talend-Studio-win-x86_64.exe (Or the name of your Talend executable file.)
    3. Save the file with a .bat extension and store the file in the Talend Studio directory.
    4. Run the file whenever you launch Studio.
Version history
Revision #:
7 of 7
Last update:
‎04-13-2019 12:15 PM
Updated by: