Micro Focus QTP (UFT) Forums

Full Version: Unable to record JAVA Swing application with JAVA add-in
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
  • We have installed trial UFT One version which automatically add the environment variable like _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and IBM_JAVA_OPTIONS in System environment variables.
  • When we try to open/invoke our desktop application which is developed in JAVA Swing, it is not able to invoke as UFT has already setup the _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and IBM_JAVA_OPTIONS in System environment. When we remove these UFT _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and IBM_JAVA_OPTIONS then we are able to invoke application.
  • We have tried to use batch file where we have set _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and IBM_JAVA_OPTIONS and removed from System environment variables then UFT does not record any JAVA code, though we have selected Java add-ins. None of lines are getting recorded.


  • Values that are populated in  _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and IBM_JAVA_OPTIONS are as below :

  • _JAVA_OPTIONS
    -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\Micro Focus\UFT One\bin\java_shared\classes\jasmine.jar"


    IBM_JAVA_OPTIONS
    -Xbootclasspath/a:"C:\Program Files (x86)\Micro Focus\UFT One\bin\java_shared\classes\jasmine.jar"


    JAVA_TOOL_OPTIONS
    -agentlib:jvmhook


  • So if anyone faced this kind of situation then please help us in resolving this kind of case and how to setup _JAVA_OPTIONS, JAVA_TOOL_OPTIONS and IBM_JAVA_OPTIONS differently.