Symptom

Power Automate for desktop cannot access the elements of a Java desktop application.

Verifying issue

Make sure you are not able to capture an element of the application using either the Recorder or the "Add UI element" action in the Designer.

Cause

1. Java is not installed on your machine.

2. Java Access Bridge is enabled.

3. Some files are not available in the Java folder(s) of the machine after the Power Automate for desktop installation.

Resolution

1. Make sure you have Java installed. You may check this by:

  • Open a command window or terminal and enter: > java –version

  • If Java is not installed on your machine, you will receive an error message as: 'java' is not recognized as an internal or external command, operable program or batch file.

2. Java Access Bridge from Control Panel should be disabled

  • Go to ‘Control Panel->Ease of Access->Optimize visual display->Java Access Bridge from Oracle, Inc. Providing Assistive Technology access to Java applications’ and disable (uncheck) the ‘Enable Java Access Bridge’ option. 

3. Specific files should exist in the Java folder(s) of the machine after the Power Automate for desktop installation.

Follow the steps below to check the installed Java version and installation path in your machine:

  1. Type ‘Configure Java’ in the Search bar of Windows

  2. Open Java control panel

  3. Go to ‘Java’ tab 

  4. Click on ‘View’

  5. Check values in ‘Path’ column. Row with ‘Architecture’ equal to x86 refers to 32-bit Java installation, while the row with value ‘x86x64’ refers to 64-bit Java installation. 

You may check the below files:

  • For 64-bit Java installation:

    1. File ‘Microsoft.Flow.RPA.Desktop.UIAutomation.Java.Bridge.Native.dll’ should have been replaced in folder ‘C:\Program Files\Java\jre1.8.0_271\bin’. (jre1.8.0_271 could be replaced with your machine’s Java installation)

    2. File ‘accessibility.properties’ should have been replaced in folder ‘C:\Program Files\Java\jre1.8.0_271\lib’. (jre1.8.0_271 could be replaced with your machine’s Java installation). If you edit the file with a notepad, it should have the following value: assistive_technologies=com.sun.java.accessibility.AccessBridge, microsoft.flows.rpa.desktop.uiautomation.JavaBridge

    3. File ‘access-bridge-64’ should have been inserted in folder ‘C:\Program Files\Java\jre1.8.0_271\lib\ext’. (jre1.8.0_271 could be replaced with your machine’s Java installation)

  • For 32-bit Java installation:

    1. Same actions for the same files (instead '64' wait for '32') as above but in folder path ‘C:\Program Files (x86) \Java…’

  • Make sure there isn't an '.accessibility.properties' file present in your user folder.

  • Check ‘C:\Users\user’ if a file with name ‘.accessibility.properties’ is present. If yes, then please rename it.

  • Ensure that 'VC_redist.x64.exe' and/or 'VC_redist.x86.exe' have been executed. 

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×