Skip to content

Commit 7deae53

Browse files
committed
Merge branch 'revise-java-automation-issues' of https://github.com/iomimtso/supportarticles-docs-pr into pr/iomimtso/10253
2 parents 9f93558 + bd2fcd3 commit 7deae53

1 file changed

Lines changed: 28 additions & 27 deletions

File tree

support/power-platform/power-automate/desktop-flows/ui-automation/cannot-access-java-application-elements.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Can't access elements of a Java application
2+
title: Can't Access Elements of a Java Application
33
description: Troubleshoot the issue that Power Automate for desktop can't access the elements of a Java desktop application.
44
ms.reviewer: pefelesk, mitsirak, nimoutzo, iomimtso, v-shaywood
55
ms.date: 11/26/2025
66
ms.custom: sap:Desktop flows\UI or browser automation
77
---
88
# Can't access the elements of a Java application
99

10-
When [automating Java applications](/power-automate/desktop-flows/how-to/java) by using Power Automate for desktop, you might experience an issue where Power Automate can't access the UI elements of the Java application. Follow the steps in this article to troubleshoot this issue.
10+
When [you automate Java applications](/power-automate/desktop-flows/how-to/java) by using Power Automate for desktop, you experience an issue in which Power Automate can't access the UI elements of the Java application. This article helps you troubleshoot this issue.
1111

1212
_Applies to:_   Power Automate
1313
_Original KB number:_   5014922
@@ -18,25 +18,26 @@ Power Automate for desktop can't access the UI elements of a Java desktop applic
1818

1919
## Diagnose using the troubleshooter
2020

21-
To solve this problem, first try the [troubleshooter](/power-automate/desktop-flows/troubleshooter):
21+
To resolve this problem, first try the [troubleshooter](/power-automate/desktop-flows/troubleshooter):
2222

2323
1. In Power Automate for desktop, go to **Help** > **Troubleshooter**, and then run the [troubleshooter](/power-automate/desktop-flows/troubleshooter).
2424

2525
1. In the **Troubleshooter** window, select **Run** on the **Troubleshot UI/Web automation issues** panel.
2626

2727
1. If the troubleshooter finds an issue for **Java Automation**, expand the panel to see the details.
2828

29-
1. If a **Fix** button is available, select it to apply the fix. Make sure you close all running **Java** applications before applying the fix.
29+
1. If a **Fix** button is available, select it to apply the fix. Make sure that you close all running **Java** applications before you apply the fix.
3030

31-
If the problem persists after using the troubleshooter, follow the steps in [Manual troubleshooting](#manual-troubleshooting) to further troubleshoot the problem.
31+
If the problem persists after you use the troubleshooter, follow the steps in [Manual troubleshooting](#manual-troubleshooting) to further troubleshoot the issue.
3232

3333
## Manual troubleshooting
3434

35-
Use these steps only if the troubleshooter finds no Java installations or can't configure the environment.
35+
> [!NOTE]
36+
> Use these steps only if the troubleshooter finds no Java installations or can't configure the environment.
3637
37-
### Configure Java (for Java 7 and 8)
38+
### Configure Java (for Java 8 and 7)
3839

39-
Use these steps to troubleshoot Java 7 and 8. If you're using Java 9 or later, see [Configure Java (for Java 9 and later)](#configure-java-for-java-9-and-later).
40+
Use these steps to troubleshoot Java 8 and 7. If you're using Java 9 or a later version, see [Configure Java (for Java 9 and later)](#configure-java-for-java-9-and-later).
4041

4142
#### Locate the Java installation folder
4243

@@ -47,60 +48,60 @@ Use these steps to troubleshoot Java 7 and 8. If you're using Java 9 or later, s
4748

4849
1. Open Task Manager.
4950

50-
1. Find the `java.exe` process, right-click it, and then choose **Open file location**.
51+
1. Locate and right-click the `java.exe` process, and then select **Open file location**.
5152

52-
1. Use that folder as `<JRE_HOME>\bin`.
53+
1. Use the selected folder as `<JRE_HOME>\bin`.
5354

5455
To avoid this issue in the future, install Java under `Program Files` or enable the option to register Java in the system registry during installation.
5556

5657
#### Copy required files (administrator rights required)
5758

58-
Copy these files from the Power Automate for desktop installation folder (`C:\Program Files (x86)\Power Automate Desktop\dotnet\java-support`):
59+
Copy the following files from the Power Automate for desktop installation folder (`C:\Program Files (x86)\Power Automate Desktop\dotnet\java-support`):
5960

6061
- `PAD.JavaBridge.jar` to `<JRE_HOME>\lib\ext\`
6162
- `Microsoft.Flow.RPA.Desktop.UIAutomation.Java.Bridge.Native.dll` to `<JRE_HOME>\bin\` (x86 or x64 depending on the Java architecture)
6263

6364
#### Update accessibility configuration
6465

65-
1. Open `<JRE_HOME>\lib\accessibility.properties` in a text editor. Create the file if it doesn't exist.
66-
1. Add or update this line:
66+
1. Open `<JRE_HOME>\lib\accessibility.properties` in a text editor. If the file doesn't exist, create it.
67+
1. Add or update the following line:
6768

6869
`assistive_technologies=microsoft.flows.rpa.desktop.uiautomation.JavaBridge`
6970

70-
If the line starts with `#`, remove the `#` to uncomment it. If other assistive technologies are listed, append the Microsoft value at the end, separated by a comma.
71+
If the line starts with the number sign (`#`), remove the `#` character to uncomment it. If other assistive technologies are listed, append the Microsoft value at the end, separated by a comma.
7172

7273
> [!NOTE]
73-
> Manual file placement works only for Java 7 and 8. Java 9 and later don't support loading assistive technologies by this method.
74+
> Manual file placement works for only Java 8 and 7. Java 9 and later versions don't support using this method to load assistive technologies.
7475
7576
### Configure Java (for Java 9 and later)
7677

77-
For Java 9 and later versions, you can't modify the Java installation in the same way. Use one of the following methods instead.
78+
For Java 9 and later versions, you can't modify the Java installation in the same manner. Instead, use one of the following methods.
7879

7980
#### Set environment variable (recommended)
8081

81-
Set a system or user environment variable named `JDK_JAVA_OPTIONS` with this value (64-bit example):
82+
Set a system or user environment variable that's named `JDK_JAVA_OPTIONS` and has the following value (64-bit example):
8283

8384
`-javaagent:"C:\Program Files (x86)\Power Automate Desktop\dotnet\java-support\PAD.JavaBridge.jar" -Djava.library.path="%PATH%;C:\Program Files (x86)\Power Automate Desktop\dotnet\java-support\x64"`
8485

85-
For 32-bit Java, use the `x86` folder instead of `x64`.
86+
For 32-bit Java, use the `x86` folder instead of the `x64` folder.
8687

8788
#### Add JVM arguments to the Java application start command
8889

89-
Append these arguments to the app's Java startup command:
90+
Append the following arguments to the app's Java startup command:
9091

9192
- `-javaagent:"<PAD install path>\dotnet\java-support\PAD.JavaBridge.jar"`
92-
- `-Djava.library.path="<PAD install path>\dotnet\java-support\x64"` (for 32-bit Java, use the `x86` folder instead of `x64`)
93+
- `-Djava.library.path="<PAD install path>\dotnet\java-support\x64"` (for 32-bit Java, use the `x86` folder instead of the `x64` folder)
9394

9495
## Key clarifications and troubleshooting tips
9596

96-
- Always try the Power Automate for desktop Troubleshooter first. It's the safest and fastest method to configure Java automation.
97-
- Manual file placement applies only to Java 7 and 8. Use the environment-variable or JVM-argument method for Java 9 and later.
97+
- Always try the Power Automate for desktop troubleshooter first. It's the safest and fastest method to configure Java automation.
98+
- Manual file placement applies only to Java 8 and 7. Use the environment-variable method or JVM-argument method for Java 9 and later.
9899
- Java versions earlier than 7 aren't supported.
99-
- The attach mechanism might not work reliably with Java 9 or Java 10.
100-
- Use Task Manager to find the Java executable path when an application uses an embedded runtime.
101-
- You need administrator rights to place files in Java installation folders.
102-
- If you placed the files manually, they aren't updated automatically when Power Automate for desktop is updated. Repeat the manual file placement after each Power Automate for desktop update to use the latest Java automation files.
103-
- After making changes, close all running Java applications. Restarting the PC is recommended.
100+
- The attach mechanism might not work reliably for Java 10 or Java 9.
101+
- If an application uses an embedded runtime, use Task Manager to find the Java executable path.
102+
- To be able to insert files into Java installation folders, you must have administrator rights.
103+
- If you insert the files manually, the files aren't updated automatically when Power Automate for desktop is updated. To use the latest Java automation files, repeat the manual file placement after each Power Automate for desktop update.
104+
- After you make the changes, close all running Java applications, and then restart the computer.
104105

105106
## Related content
106107

0 commit comments

Comments
 (0)