In order to automate Java Applications using the Java Sensor in Element Target activities you need to enable the Java Access Bridge.
Please note! Make sure to have Java application installed to automate your process.
There are two ways of enabling the Java Access Bridge
Enabling the JAB in ease of Access Center
- Go to Start > Control Panel > Ease of Access > Ease of Access Center. Alternatively, press Windows Key + U to access the Ease of Access Center.
- Select Use the computer without a display.
- In the section Other programs installed, select the check box Enable Java Access Bridge (you may have to scroll down).
Please Note! After enabling Java Access Bridge, you must restart the AM Composer and Java applications that use the accessibility API.
Enabling the JAB via Command Line
To enable the Java Access Bridge, run the following command:
"C:\Program Files\Java\jre1.x.x_xxx\bin\jabswitch" -enable
Disabling the JAB via Command Line
In case you want to disable the Java Access Bridge again (the automation won't run then), use the following command:
"C:\Program Files\Java\jre1.x.x_xxx\bin\jabswitch" -disable
Please Note! The Java Sensor in AM Composer is only compatible with Java AWT and Java Swing Apps.