博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
LoadRunner与JDK的安装问题
阅读量:4688 次
发布时间:2019-06-09

本文共 1625 字,大约阅读时间需要 5 分钟。

LoadRunner与JDK的安装问题

Louis-KB-20080722-T001

我在安装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位软件还是有很多不兼容,出现的报错信息也是五花八门,希望能对大家有帮助。

转载于:https://www.cnblogs.com/simplelogic/archive/2013/01/07/2848525.html

你可能感兴趣的文章
python 元类——metaclass
查看>>
什么是缓冲,引入缓冲的原因是什么?
查看>>
不把DB放进容器的理由
查看>>
OnePage收集
查看>>
Java parseInt()方法
查看>>
yahoo的30条优化规则
查看>>
[CCF2015.09]题解
查看>>
[NYIST15]括号匹配(二)(区间dp)
查看>>
json_value.cpp : fatal error C1083: 无法打开编译器生成的文件:No such file or directory
查看>>
洛谷 P1101 单词方阵
查看>>
Swift DispatchQueue
查看>>
C#和JAVA 访问修饰符
查看>>
集合框架
查看>>
小甲鱼OD学习第1讲
查看>>
【转】简述生成式对抗网络
查看>>
HDU-1085 Holding Bin-Laden Captive-母函数
查看>>
php提示undefined index的几种解决方法
查看>>
轻量级原生 ajax 函数,支持 get/array post/array post/json
查看>>
LRJ
查看>>
Struts2环境搭建
查看>>