TA的每日心情 | 开心 2015-4-1 15:32 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
请各位大侠帮忙啊!
我新建了一个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] |
|