LR下运行JAVA脚本时报该错误,求高手帮忙
Error:Cannotlocatejavac.exeunderthespecifiedJDKHOMEdirectory.[MsgId:MERR-22967]Notify...
Error: Cannot locate javac.exe under the specified JDK HOME directory. [MsgId: MERR-22967]
Notify: Found jdk version: 1.6.0. [MsgId: MMSG-22986]
Notify: classpath=D:\Program Files\HP\LoadRunner\scripts\udms\;d:\program files\hp\loadrunner\classes\srv;d:\program files\hp\loadrunner\classes;G:\UDMS\UDMS\udms-core-1.1.jar;G:\UDMS\UDMS\udms-tool-1.1.jar;;;D:\Program Files\HP\LoadRunner\scripts\udms\udms-core-1.1.jar;D:\Program Files\HP\LoadRunner\scripts\udms\udms-tool-1.1.jar; [MsgId: MMSG-22986]
Error: Failed to compile the Actions.java file.
Please add the <JDK>\bin to the path and try again. [MsgId: MERR-22996]
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] 展开
Notify: Found jdk version: 1.6.0. [MsgId: MMSG-22986]
Notify: classpath=D:\Program Files\HP\LoadRunner\scripts\udms\;d:\program files\hp\loadrunner\classes\srv;d:\program files\hp\loadrunner\classes;G:\UDMS\UDMS\udms-core-1.1.jar;G:\UDMS\UDMS\udms-tool-1.1.jar;;;D:\Program Files\HP\LoadRunner\scripts\udms\udms-core-1.1.jar;D:\Program Files\HP\LoadRunner\scripts\udms\udms-tool-1.1.jar; [MsgId: MMSG-22986]
Error: Failed to compile the Actions.java file.
Please add the <JDK>\bin to the path and try again. [MsgId: MERR-22996]
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] 展开
1个回答
展开全部
估计你java环境变量配置出问题了,,
你配置好环境变量就行了,,,
我的电脑”-->"高级"-->"环境变量"
一般电脑都有path路径,你的只需在path路径后加上
path
;C:\Program Files\Java\jdk1.6.0_24\bin
classpath路径上这么设置
.;C:\Program Files\Java\jdk1.6.0_24\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_24\lib\tools.jar
注意第一个的点号,
C:\Program Files\Java\jdk1.6.0_24这个是jdk的安装路径,根据不同版本,你参照设置就行了,,,
后在开始-cmd-后输入javac,如果系统找到路径,你就设置成功了,,
你配置好环境变量就行了,,,
我的电脑”-->"高级"-->"环境变量"
一般电脑都有path路径,你的只需在path路径后加上
path
;C:\Program Files\Java\jdk1.6.0_24\bin
classpath路径上这么设置
.;C:\Program Files\Java\jdk1.6.0_24\lib\dt.jar;C:\Program Files\Java\jdk1.6.0_24\lib\tools.jar
注意第一个的点号,
C:\Program Files\Java\jdk1.6.0_24这个是jdk的安装路径,根据不同版本,你参照设置就行了,,,
后在开始-cmd-后输入javac,如果系统找到路径,你就设置成功了,,
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询