51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3604|回复: 8
打印 上一主题 下一主题

[求助] QTP和jdk环境变量冲突,无法共存,求大牛指导!!!

[复制链接]
  • TA的每日心情
    擦汗
    2016-5-4 10:34
  • 签到天数: 68 天

    连续签到: 1 天

    [LV.6]测试旅长

    1#
    发表于 2014-8-11 16:57:10 | 显示全部楼层
    你试试删除这2个环境变量:JAVA_OPTIONS, JAVA_TOOL_OPTIONS
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2016-5-4 10:34
  • 签到天数: 68 天

    连续签到: 1 天

    [LV.6]测试旅长

    2#
    发表于 2014-8-11 17:54:32 | 显示全部楼层
    回复 7# 守夜天使

    我丛HP论坛粘贴了一个回复你看下:Title: QuickTest Professional (QTP) configuration crashes (or prevent start/launch of) Java applications (or Oracle)
    Document ID: KM543247
    Product: QuickTest Professional,Functional Testing
    Version:   Updated: 2012-Jun-01
    Summary: Is it possible to limit when the agent for QuickTest Professional is loaded into a Java application? Sometimes users finds that QTP will cause Java based applications to behave unexpectedly, or sometimes even to crash

    Problem

    When both QTP and a Java application is installed on the same machine, some users may find that their Java application may not function correctly or may often crash unexpectedly. This occurs with QTP running but no neccessarily recording.

    Cause

    Collisions with the changes to the Java environment made by QTP's Java or Oracle addin have prevented the applications from launching correctly.

    Fix   

    This will ensure that the Java support is only loaded when QTP and the Java / Oracle addin are loaded
    Close QTP and any Java or Oracle related applications.

    Note: steps 2 to 6 are for Web related applications of the Java/Oracle type (mostly Applets)
    Navigate to the Java control panel.
    Start -> Control panel -> Java control panel
    Under the Java Advanced tab navigate to "<APPLET > tab support" (for Java 1.5.x) or "Default Java plugin for browsers" (for Java 1.6.x).

    Note: For Vista or later operating systems, it appears this option may be disabled)
    Please uncheck the checkbox "Internet Explorer"
    Click "Ok" and continue until Java Control Panel is closed
    Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 32bit Operating System
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent\LoadDependsOnPackage - 64bit Operating System

    Modify the value from “0” to "1". The default value is 0 which indicates that the agent is always loaded into an application. If this value is then changed to 1, it will instruct the agents to only be injected when QTP and the Java addin are loaded.
    For changes to take effect, please restart the machine
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-9 01:15 , Processed in 0.065311 second(s), 21 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表