Configuration of Java Access Bridge

Estimated reading: 2 minutes 91 views

This guide explains how to configure the Java Access Bridge for automation by following the steps below.

Note: Administrative rights are required to perform these steps.

1. Download the Open JDK msi using below URL greater than 1.8 version for 64 bit. https://www.openlogic.com/openjdk-downloads

2. Install the Open JDK. While installing the JDK, enable the “Set JAVA_HOME” option as “Will be installed on local hard drive” as instructed in below image.

3. Download Java Access Bridge 2.0.2 from the Java Access Bridge Home Page at the following URL:

http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136191.html.

The above step requires Oracle sign in to download the file. Once downloaded, extract the folder.

4. Open the extracted access bridge folder and open the below file – accessibility.properties.

5. In this file, Add “#” before the screen_magnifier_present=true

a. After saving which should be “#screen_magnifier_present=true”.

6. Now, go to the JDK installation path à C:\Program Files\OpenLogic\jdk-8.x.x.x-hotspot\lib.

7. Add a new folder as “ext”.

8. There are a few files that need to be moved from the Access Bridge folder to the JDK installation path. The table below shows where each file should be placed.

Table 2-2 Java Access Bridge Windows Libraries and Related Files for Windows 64-Bit.

Java Access Bridge File Destination Directory
WindowsAccessBridge-32.dll %WINDOWSHOME%\SYSWOW64
C:\Windows\SysWOW64
WindowsAccessBridge-64.dll %WINDOWSHOME%\SYSTEM32
C:\Windows\System32
JavaAccessBridge-64.dll %JAVAHOME64%\bin
C:\Program Files\OpenLogic\jdk-8.x.xxx.xx-hotspot\bin
JAWTAccessBridge-64.dll %JAVAHOME64%\bin
C:\Program Files\OpenLogic\jdk-8.x.xxx.xx-hotspot\bin
accessibility.properties %JAVAHOME32%\lib and %JAVAHOME64%\lib depending on the JDKs and JREs installed on your system
C:\Program Files\OpenLogic\jdk-8.x.xxx.xx-hotspot\lib
access-bridge-64.jar %JAVAHOME64%\lib\ext
C:\Program Files\OpenLogic\jdk-8.x.xxx.xx-hotspot\lib\ext
jaccess.jar %JAVAHOME32%\lib\ext and %JAVAHOME64%\lib\ext depending on the JDKs and JREs installed on your system
C:\Program Files\OpenLogic\jdk-8.x.xxx.xx-hotspot\lib\ext

9. Once the support DLL’s are replaced, install the Java desktop application.

10. After installation, right-click on the desktop shortcut and select ‘Open file location.’
a. In the opened folder, locate the JRE folder and rename it to a user-defined name.

11. Open Command Prompt and navigate to the following path: cd C:\Program Files\OpenLogic\jdk-8.x.xxx.xx-hotspot\bin

12. Enter the command: jabswitch –enable

a. This enables the Java Access Bridge, which allows automation tools to detect elements in Java applications.

13. Restart your system and use Java automation activities to automate the Java desktop application.

Share this Doc

Configuration of Java Access Bridge

Or copy link

CONTENTS