51Testing软件测试论坛
标题:
java vuser的问题
[打印本页]
作者:
elton1982
时间:
2007-11-13 20:12
标题:
java vuser的问题
请各位大侠帮忙啊!
我新建了一个java vuser脚本
import lrapi.lr;
public class Actions
{
public int init() {
return 0;
}//end of init
public int action() {
return 1;
}//end of action
public int end() {
return 0;
}//end of end
}
为什么运行会出错?我环境变量都配好的呀?
lr报如下错误:
Notify: Found jdk version: 1.5.0. [MsgId: MMSG-22986]
Warning: Warning: Failed to find Classes.zip entry in Classpath.
[MsgId: MWAR-22986]
Notify: classpath=C:\Program Files\Mercury Interactive\Mercury LoadRunner\scripts\java1\;c:\program files\mercury interactive\mercury loadrunner\classes\srv;c:\program files\mercury interactive\mercury loadrunner\classes;;.;C:\Program Files\Java\jdk1.5.0_09\lib;C:\Program Files\Java\jdk1.5.0_09\jre\lib;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib;C:\Program Files\Mercury Interactive\Mercury LoadRunner\classes;C:\Program Files\Mercury Interactive\Mercury LoadRunner\lib;C:\Sybase\ASEP\Monclass.zip;C:\Sybase\ASEP\3pclass.zip;; [MsgId: MMSG-22986]
Notify: Path=C:\PROGRA~1\MERCUR~1\MERCUR~1\bin;.;C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program Files\Java\jdk1.5.0_09\jre\bin;F:\oracle\ora90\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\PROGRA~1\MERCUR~1\MERCUR~1\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Sybase\DLL;C:\Sybase\BIN;C:\Program Files\Sybase\Sybase Central\win32;C:\Sybase\ASEP;C:\Program Files\Sybase\SQL Anywhere 8\win32;C:\Program Files\Sybase\Shared\win32;C:\Program Files\Sybase\Shared\Sybase Central 4.1;C:\Program Files\Sybase\Shared\PowerBuilder;C:\Program Files\Sybase\Shared\Web Targets;; [MsgId: MMSG-22986]
Notify: VM Params: . [MsgId: MMSG-22986]
Notify: Unable to initialize threads: cannot find class java/lang/Thread [MsgId: MMSG-22986]
Error: Unable to create Java VM. [MsgId: MERR-22994]
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]
作者:
rickyzhu
时间:
2007-11-13 23:08
这么简单的问题居然出这么多错误,I 服了U
可以看出来是环境变量的问题
作者:
liangjz
时间:
2008-2-28 12:36
楼上的说得对。
loadrunner 对jdk1.5需要补丁支持。
去下载这个:
lrunner_java_protocol_fixes_Feb_05.exe
作者:
marco
时间:
2009-7-28 16:01
9.1也需要这个补丁吗?
作者:
sunhope800
时间:
2009-8-4 15:39
学习学习
作者:
kiki_06
时间:
2014-4-25 01:19
loadrunner11 也需要这个补丁吗
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2