You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

技术问询:LeanFT中无法打开指定URL的浏览器,附报错信息

Troubleshooting LeanFT Browser Launch Failure with JVM Hook Environment Variables

Hey there, let's break down how to fix this issue where LeanFT can't launch a browser to open your specified URL. The error messages showing JAVA_TOOL_OPTIONS and _JAVA_OPTIONS are the main clues here—they indicate potential conflicts or misconfigurations in the JVM hooks LeanFT relies on.

Here are step-by-step fixes to try:

  • Resolve conflicting JVM environment variables
    The problem often arises because both JAVA_TOOL_OPTIONS and _JAVA_OPTIONS are setting JVM hooks, creating a conflict.

    1. Open your system's Environment Variables (right-click This PC > Properties > Advanced system settings > Environment Variables).
    2. Locate _JAVA_OPTIONS and temporarily remove or rename it (e.g., to _JAVA_OPTIONS_BACKUP).
    3. Restart your LeanFT IDE/test runner and try launching the browser again. If this works, you can either keep _JAVA_OPTIONS disabled or merge its non-conflicting settings into JAVA_TOOL_OPTIONS.
  • Validate LeanFT JAR file paths
    Double-check that the paths in your environment variables point to existing, accessible files:

    • Verify C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes exists and contains the required LeanFT Java libraries.
    • Confirm jasmine.jar is present in that subdirectory.
    • Ensure you're running your test with administrator privileges to avoid permission issues accessing these paths.
  • Verify browser driver compatibility
    LeanFT requires browser-specific drivers (e.g., ChromeDriver for Chrome, GeckoDriver for Firefox) that match your browser version.

    1. Check LeanFT's documentation for the supported driver versions for your browser.
    2. Place the driver in a directory included in your system PATH, or specify its path directly in your LeanFT test configuration.
    3. Test launching the browser without a URL first—if it opens successfully, the issue might be with the URL itself (e.g., invalid characters, network restrictions).
  • Reset LeanFT Java configuration
    Corrupted Java settings in LeanFT can cause this issue:

    1. Run leanftconfig.exe from your LeanFT installation directory (usually C:\Program Files (x86)\HPE\LeanFT\bin).
    2. Navigate to the Java tab, reselect your JDK installation path, and click Apply.
    3. Restart your test environment and retry the browser launch.

内容的提问来源于stack exchange,提问作者suraj sharma

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 07:16:08