如何在捆绑的JRE中启用Java Access Bridge?

时间:2013-12-18 10:08:01

标签: java java-access-bridge

在Java 1.7中,Java Access Bridge从一开始就捆绑在一起。它说你需要做的就是运行jabswitch.exe -enable来为这个特定的JRE启用JAB。

从安装程序获取JRE时,此工作正常。但是,在仅为Windows部署Java应用程序时,您可能希望捆绑JRE以便于安装。捆绑JRE时,似乎无法激活Java Access Bridge

有没有办法在捆绑的JRE中启用Java Access Bridge?

2 个答案:

答案 0 :(得分:0)

我认为命令行开关采用 / 而不是 -

e.g。 jabswitch.exe / enable

这是命令行帮助

jabswitch.exe /help

jabswitch [/enable | /disable | /version | /?]

Description:
  jabswitch enables or disables the Java Access Bridge.

Parameters:
  /enable   Enable the Java Accessibility Bridge.
  /disable  Disable the Java Accessibility Bridge.
  /version  Display the version.
  /?        Display this usage information.

Note:
  The Java Access Bridge can also be enabled with the
  Windows Ease of Access control panel (which can be
  activated by pressing Windows + U).  The Ease of Access
  control panel has a Java Access Bridge checkbox.  Please
  be aware that unchecking the checkbox has no effect and
  in order to disable the Java Access Bridge you must run
  jabswitch.exe from the command line.

关于JAWS,请尝试使用JAB 2.0.4附带的Java7 update 60,因为此版本修复了JAWS的错误。

答案 1 :(得分:0)

您需要执行三个步骤(描述配置:Windows 7 64位,私有JRE 8 64位和JAWS 14):

  1. \jre\bin\WindowsAccessBridge-64.dll复制到C:\Windows\System32,如Oracle网站所述:http://docs.oracle.com/javase/7/docs/technotes/guides/access/enable_and_test.html
  2. (未记录)导入以下注册表文件:

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Accessibility]
    "Configuration"=",oracle_javaaccessbridge"
    
  3. (未记录)将JRE二进制文件位置添加到用户的PATH环境变量(例如C:\mydir\jre\bin

  4. 确保accessibility.properties中有未注释的行:

    assistive_technologies=com.sun.java.accessibility.AccessBridge
    screen_magnifier_present=true
    

    此外,在Java应用程序之前启动JAWS。