现状:
64位的win7操作系统,jdk 1.8.0.191
问题:使用LoadRunner 运行JavaVuser 协议的脚本,报错:
Error: Failed to find java.exe.
Please add the <JDK>\bin to the path and try again. [MsgId: MERR-22968]
Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176]
解决方法:
各种查询后得知,LoadRunner11不支持 jkd1.7及其以上的版本,参考文档见,此作者的文档:https://blog.csdn.net/achang21/article/details/45540483。只支持32位的1.6版本的jdk。
于是,下载32位的1.6版本的jdk,
1、分区32位还是64位的jdk的方法,见此作者的文档:https://jingyan.baidu.com/article/db55b60930dea84ba30a2f81.html
2、官网下载历史版本的jdk的方法,见此作者的文档:https://jingyan.baidu.com/article/9989c746064d46f648ecfe9a.html
3、环境变量的设置参考文档,见此作者的文档:https://blog.csdn.net/achang21/article/details/45540483
4、切换jdk ,请参照此作者的文档:https://blog.csdn.net/qaz5209103/article/details/81276274