zoukankan      html  css  js  c++  java
  • LoadRunner与JDK的安装问题

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

  • 相关阅读:
    String、StringBuffer与StringBuilder之间区别
    关于 hashCode() 你需要了解的 3 件事
    Java基础之 运算符
    Java基础之基础语法
    Java基础之Java 修饰符
    自动化-python介绍与基础
    vue访问本地后台
    vue请求报错Uncaught (in promise)
    使用vue-resource,get、post、jsonp都报未定义的错误。
    【蓝桥杯】历届试题 打印十字图
  • 原文地址:https://www.cnblogs.com/simplelogic/p/2848525.html
Copyright © 2011-2022 走看看