elton1982 发表于 2007-11-13 20:12:35

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.
Warning: Warning: Failed to find Classes.zip entry in Classpath.

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;;
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;;
Notify: VM Params: .
Notify: Unable to initialize threads: cannot find class java/lang/Thread
Error: Unable to create Java VM.
Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.

rickyzhu 发表于 2007-11-13 23:08:43

这么简单的问题居然出这么多错误,I 服了U
可以看出来是环境变量的问题

liangjz 发表于 2008-2-28 12:36:21

楼上的说得对。

loadrunner 对jdk1.5需要补丁支持。

去下载这个:

lrunner_java_protocol_fixes_Feb_05.exe

marco 发表于 2009-7-28 16:01:24

9.1也需要这个补丁吗?

sunhope800 发表于 2009-8-4 15:39:00

学习学习

kiki_06 发表于 2014-4-25 01:19:43

loadrunner11 也需要这个补丁吗
页: [1]
查看完整版本: java vuser的问题