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

Set _JAVA_OPTIONS=

Set JAVA_TOOL_OPTIONS=

Set IBM_JAVA_OPTIONS=



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.


Comments

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

    ReplyDelete


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

    ReplyDelete
  3. 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

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

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

      Delete
  5. Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
    microsoft azure training in bangalore
    rpa training in bangalore
    best rpa training in bangalore
    rpa online training

    ReplyDelete
  6. Really nice experience you have. Thank you for sharing. It will surely be an experience to someone.
    Python Online certification training
    python Training institute in Chennai
    Python training institute in Bangalore

    ReplyDelete

Post a Comment

Popular posts from this blog

Software Testing @ Microsoft

Trim / Remove spaces in Xpath?