UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Absent Member.
Absent Member.

Env variable for recording Java Thick Client Applications

Hello Everyone,


Can anybody tell me what all the values need to be given other than the ones given below for the following Environment variable to record a Java Client Application (java version 1.7) using LoadRunner 11.52


_Java_Options  -  -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files\HP\LoadRunner\classes2";"C:\Program Files\HP\LoadRunner\classes";"C:\Program Files\HP\LoadRunner\classes\srv";"C:\Program Files\HP\LoadRunner\bin\java";


IBM_JAVA_OPTIONS  - -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files\HP\LoadRunner\classes2";"C:\Program Files\HP\LoadRunner\classes";"C:\Program Files\HP\LoadRunner\classes\srv";"C:\Program Files\HP\LoadRunner\bin\java";


Java_Tool_Options -  -agentlib:jvmhook


Kindly let me know if i had given anything wrong or i had missed any variables. Coz i am unable to record the application using LoadRunner.


Note: I haven set the CLASSPATH and PATH with the Application class path.

Tags (1)
4 Replies
Absent Member.
Absent Member.


To configure JAVA client in LoadRunner try to do the following:

1) For recording choose the protocol
   - JAVA RecordReplay
2) In the start recording dialog select
   - Application Type: JavaApplication
   - App. Main Classe: have a look to the cmd file that starts the application and use only the main class
   - Working Directoy: select the directory where the application is installed, but i think it does not matter what you choose
   - App. parameters : this can be empty
3) In the Options dialog do the following
   Java Environment Settings / Java VM
   - Additional VM Parameters: Put all options from the invocation command (cmd file) and expand all variables; do not put the classpath entries here
   - let the check boxes unchecked
   Java Environment Settings / Classpath
   - Use the buttons to populate the list with all classpath entries from the cmd file
4) Leave all the other options as default.

Now at least the application should start when you begin recording.




Absent Member.
Absent Member.

Does you application use a batch file, you should try recording with that.



Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.


Performance Center:

How to:

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Absent Member.
Absent Member.

Thanks for reply. The problem i am facing is Loadrunner is unable to determine the exact application path and hence its failing to launch the application.


Plz do help.




Absent Member.. Absent Member..
Absent Member..

Would be interesting to know if this same problem come using Java 1.6, I have seen few issues like this caused by the java 1.7.

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.