Highlighted
Absent Member.. Absent Member..
Absent Member..
530 views

QTP support tip: Load Java support without using the _JAVA_OPTIONS environment variable?

The _JAVA_OPTIONS environment variable is automatically created during Java and Oracle Add-in's installation. This environment variable will load Java support automatically when starting the Java application.

There may be instances where a user may not be able to use this additional environment variable. How would a user load Java support without using the _JAVA_OPTIONS environment variable?

 

Launch the Java application using options "-Xrunmicsupp" and "-Xbootclasspath" options to the application's command line to load Java support, without use of environment variables.

To configure a Java application with java.exe, the following command line should be used:

java -Xrunmicsupp -Xbootclasspath/a:<mic_classes> <ApplicationClass>

By default, <mic_classes> is "<UFT/QTP>\bin\java_shared\classes;<UFT/QTP>\bin\JAVA_S~1\classes\jasmine.jar"

  • QuickTest Professional: "C:\Program Files\HP\QuickTest Professional\bin\java_shared\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar"
  • Unified Functional Testing: :"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes";"C:\Program Files (x86)\HP\Unified Functional Testing\bin\java_shared\classes\jasmine.jar"

Example:

java -Xrunmicsupp -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar –jar C:\SwingSet2\SwingSet2\SwingSet2.jar

 

 

 

Note: It is possible to create a batch file containing command lines and launch your application via the batch file.

Labels (1)
0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.