LoadRunner与JDK的安装问题

我在安装LoadRunner9.1版本的时候,取得的license是Java协议,需要在服务器上安装JDK。首先服务器是Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack2(x64),安装的LoadRunner9.1默认是在C盘的Program Files中,按照这样来说,就需要安装64为的JDK,我即安装jdk-1_5_0_16-windows-amd64.exe,但是在安装成功后,运行写好的Java协议脚本,会出现如下的错误:

 

Error: Failed to find javac.exe Java Compiler in Path and JDK installation folder in registry. [MsgId: MERR-22981]
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]


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]

在检测JDK安装是否成功时,JDK能够正常运行,LoadRunner的安装也没有任何问题,这样的问题就定位到二者的结合的问题上,首先在Vuser->Run-Time Setting中的Java Environment Settings->ClassPath中能够识别环境变量中的ClassPath,但是还是会报以上的错误。

在找问题所在的时候,我发现LoadRunner9.1没有任何说明此版本是64位软件,如何没有任何说明,则默认应该是32位软件,而对应的JDK应该也是32位的JDK,64位操作系统是兼容32位软件,我马上安装了32位的JDK,重启server,删除Vuser->Run-Time Setting中的Java Environment Settings->ClassPath中所有变量,重新运行脚本,发现错误消失。

写此文章就是想告诉大家,32位的软件和64位软件还是有很多不兼容,出现的报错信息也是五花八门,希望能对大家有帮助。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值