Description of issue
LEAPWORK is designed to fully support Java desktop applications, allowing users to capture any control inside of Java applications. However, few users have experienced difficulties due to various factors resulting in capture related errors or applications getting crashed or LEAPWORK being hanged.
Steps to resolve
- Validating installation of Java components on respective machines using Leapwork Studio/Agent
- Configuring respective environment variables with appropriate values
- Enabling of Java Access Bridge
As a pre-requisite to troubleshoot, we need to ascertain whether Java is installed on the user's machine. We can do this via launching command prompt and executing the command java -version
If there is no Java present, this command will result in an error. And we can proceed with installing the latest Java from the below links, basis the machine configuration
If there is Java installed, the above statement should return the details of the installed version. Additionally, we need to verify the different components installed via Control Panel\All Control Panel Items\Programs and Features -
For if Java is found to be installed, we need to check the environment variables configuration and Java Access Bridge configuration as well. These can be found post the installation section details.
Installing Java components
For Win 64 bit configuration
|Click on Download button on landing page for latest version||Java for Windows 64 bit|
|Download jdk-8u291-windows-x64||JDK for Windows 64 bit|
Once the above mentioned components are installed, you will see below 2 elements under Apps & Features :
Once the installation is confirmed, type ‘Edit environment variables for your account' in the Windows Search box and add new or edit existing 'Path' environment variable:
- Variable name = ‘Path’
- Variable value = ‘C:\Program Files\Java\jdk1.8.0_291\bin;C:\Program Files\Java\jre1.8.0_291\bin;'
Where C:\Program Files\Java\jre1.8.0_291 – path to JRE and similarly for JDK as installed. This path may vary given the latest releases at the time of performing the installation
Java Access Bridge
Enabling Java Access Bridge
In Windows Vista and later, one can enable Java Access Bridge through the Control Panel:
Go to Start > Control Panel > Ease of Access > Ease of Access Center. Alternatively, press Windows logo 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 (one may have to scroll down).
Note: After enabling Java Access Bridge, one must restart their assistive technology software and Java applications that use the accessibility API.
For installation of Java Access bridge
Please click here
Other documents of relevance -
For any clarification, please contact our Priority Support.