There is also another approach you can try, besides the above:
This will ensure that the Java support is only loaded when Java / Oracle addin are loade
Close QTP / UFT / Sprinter and any Java or Oracle related applications. Note: steps 2 to 6 are for Web related applications of the Java/Oracle type (mostly Applets)
Navigate to the Java control panel.
Start -> Control panel -> Java control panel
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)
Please uncheck the checkbox "Internet Explorer"
Click "Ok" and continue until Java Control Panel is closed
Navigate to the following registry key: 32bit Operating System HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent\LoadDependsOnPackage 64bit Operating System HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent\LoadDependsOnPackage
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 the Java / Oracle addin is loaded.
For changes to take effect, please restart the machine