QTP incompatible with Eclipse or any similar Java Application

There are more than a few reasons that you want both QTP and eclipse on your machine.

REASON: This is an issue with QTP, which adds some Java hooks globally, this breaks Eclipse at start time. Removing these will break QTP
When QTP is installed it creates/modifies several environment variables that Java applications use.

The setting for these values that are needed for QTP may cause problems for other Java applications, such as Eclipse.

There are scenarios where QuickTest Professional (QTP) java support environment variables (_JAVA_OPTIONS, JAVA_TOOL_OPTIONS, IBM_JAVA_OPTIONS, _classload_hook) prevent specific applications from launching or functioning properly.

SOLUTION:There are some suggested workarounds from HP in the following support doc: (http://support.openview.hp.com/selfsolve/document/KM834284).
Suggestion three is worth trying and does not require updating HKLM registry.

These suggestions will allow to work around this situation even with the QTP java support variables in place and with corresponding values. Note that the conflicting application will not be recognized in a java context because it is being excluded from the java support mechanism.

Create a batch file (.bat) to start the conflicting java application similar as follows:

@echo off




This approach will disable the java environment variables for the run session of the .bat file

@echo off

Set _JAVA_OPTIONS=-Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~2\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar

Set JAVA_TOOL_OPTIONS=-agentlib:jvmhook

Set IBM_JAVA_OPTIONS=-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

Source: HP Support forums.


  1. Thanks For sharing Usefull Information. You can see More Information About QTP QC Online Training

  2. onlinesastrainings is the Best SAS Online Training Institute in Hyderabad. we provide both onlineclasses training on SAS . Contact for mail to knaveen.sas@gmail.com
    call us at
    India : +91 996 395 7366
    USA : +1 214 347 4655


  3. This site was… how do you say it? Relevant!! Finally I have found something which helped me. Thanks!
    Hadoop Online Training

  4. very useful really good information thanks for posting such a good information it will hepls the people a lot keep it up , Regards
    sap scm training

  5. This is the best source for all technologies. keep it up. We are training. SAP HANA Online Training

    1. ya What You Said Is Absolutely Right.We Are Training.Selenium Online Training

  6. I have read your blog its very attractive and impressive. I like it your blog.

    ES6 Online Training JavaScript Training Courses JavaScript Training Courses | Angular 4 Online Training Angular 4 Online Training


Post a Comment

Popular posts from this blog

XPATH for IE / internet explorer

RPA - Blue Prism, OpenSpan, Automation Anywhere vs UIPath