I am using UFT 11.53, recently installed Java Add-in for a requirement to test a Java Standalone application.
I have jre1.8 installed on the machine before installing the UFT Java add-in. The application used to launch and work. After I installed the UFT java add- in the application no longer launches.
In command prompt : Java -version , displays an error
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\
HP\Unified Functional Testing\bin\java_shared\classes";"C:\Program Files (x86)\H
P\Unified Functional Testing\\bin\java_shared\classes\jasmine.jar"
ERROR: JVMPI, an experimental interface, is no longer supported.
Please use the supported interface: the JVM Tool Interface (JVM TI).
Error: could not load Mercury Interactive support. Please run the setup again.
If the problem persists please contact Mercury's Customer support.
Error occurred during initialization of VM
-Xrun library failed to init: jvmhook
UFT/QTP creates a couple of environment variables that play merry hell with java applications. I'm convinced they do it to mess with Eclipse. Delete those environment variables and it'll likely work again.