QTP 11 Java addin issue

by on ‎11-30-2012 10:40 AM


I've installed QTP 11 on my machine with all the available addins, however it's not identifying java objects. (it displays Window/win objects).

When QTP 11 was installed few days ago it identifed the objects.Next day when we logged into the machine and test again it didn't identify and Sametime(IBM chat) got corrupted.

Is there any patch or settings to be done after installing java adddin?





When both QTP and a Java application is installed on the same machine, some users may find that their Java application may not function correctly or may often crash unexpectedly. This occurs with QTP running but no neccessarily recording.



Collisions with the changes to the Java environment made by QTP's Java or Oracle addin have prevented the applications from launching correctly.


This will ensure that the Java support is only loaded when QTP and the Java / Oracle addin are loaded
  1. Close QTP and any Java or Oracle related applications.

    Note: steps 2 to 6 are for Web related applications of the Java/Oracle type (mostly Applets)
  2. Navigate to the Java control panel.
  3. Start -> Control panel -> Java control panel
  4. Under the Java Advanced tab navigate to "<APPLET > tab support" (for Java 1.5.x) or "Default Java plugin for browsers" (for Java 1.6.x).

    Note: For Vista or later operating systems, it appears this option may be disabled)
  5. Please uncheck the checkbox "Internet Explorer"
  6. Click "Ok" and continue until Java Control Panel is closed
  7. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 32bit Operating System
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 64bit Operating System

  8. Modify the value from “0” to "1". The default value is 0 which indicates that the agent is always loaded into an application. If this value is then changed to 1, it will instruct the agents to only be injected when QTP and the Java addin are loaded.
  9. For changes to take effect, please restart the machine

Please note, if the entry in the registry does not exist, please create it manually ;)