Look at the title error message will know that this is the Java compilation and run environment configuration problem, when running the LR script, LR Proxy can not find the Java JDK Environment, of course, some people may encounter said, I am in the cmd window javac environment is no problem ah, yes, it depends on what version of your JDK is related, Then java-version see what version of your JDK it is, how many bits it has.
In order to completely solve the LR scripting environment Operation error problem, the following steps are as follows:
One, configure or reinstall the configuration Java environment variables
Specific how to configure, online Baidu has a lot, I simply write it (in my own computer Configuration):
1, java_home:c:\java\jdk1.6.0_43
2, Classpath:;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
3, Path:%java_home%\bin;%java_home%\jre\bin (Note: This is added after the original path)
Second, to solve the problem of environmental error, need to use LoadRunner 9.5/11 supported JDK version, the specific information is as follows:
1. Installation of Windows 32-bit operating system LoadRunner 9.5/11 using Java vuser necessary configuration
(1) Operating system: Windows 32-bit system (Windows7 32-bit test pass)
(2) JDK version: jdk1.6 32-bit (jdk1.6 test passed, current LR does not support 1.7 and above)
(3) jdk1.7 and above the development of the script, the operation will be error, the reason LR does not support JDK1.7 and above, if the environment OK, you need to create a new test script.
2. Installation of Windows 64-bit operating system LoadRunner 9.5/11 using Java vuser necessary configuration
(1) Operating system Windows (Windows 7 64-bit test pass)
(2) JDK 1.6 must be 32-bit (although the operating system is 64-bit), cannot be a 64-bit JDK, the current JDK 1.6 32-bit on the re-Windows 7 64-bit test pass.
Otherwise, there will be an error message
LR uses Java user Protocol Environment error Please add the <jdk>\bin to the path and try again