Micro Focus QTP (UFT) Forums
Unable to record JAVA Swing application with JAVA add-in - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Unable to record JAVA Swing application with JAVA add-in (/Thread-Unable-to-record-JAVA-Swing-application-with-JAVA-add-in)



Unable to record JAVA Swing application with JAVA add-in - Mrudula Chinchanikar - 11-24-2021

  • 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.