Java 9 is not yet supported.
The Java extension is installed by doing the following:
- First, close any running Java applications. Launch Studio and access the Tools page from the Studio Backstage View. The extensions you can install become visible. Click the Java Extensions button. A confirmation message appears, informing you that the extension has been installed.
- Run this command
C:\Program Files (x86)\UiPath\Studio\UiPath\SetupExtensions.exe /Javain a command prompt window with administrator rights.
Studio and UiExplorer also ask to install the Java extension when you try to select a control inside a Java app and when the bridge is not detected. Please note that if you choose to install the Java extension when prompted by UiExplorer the Java Bridge files get deployed only in the JRE directory which launched the target Java application instead of the JDK directory.
To install this extension you must have administrator rights.
To check if the extension is not working properly, open UIExplorer and try to select controls inside a Java app. If the entire window is selected, it means that the extension is not working properly.
If you can select controls, but their selectors look like
<wnd app=”...” /><ctrl role=”client” /> instead of
<wnd app=”...” /><java role=”...” />, then the extension is not working properly.
UiPath Java Extension is compatible only with AWT apps (e.g. Java Swing, Oracle Forms, Fujitsu JBK), while SWT apps are automated with Active Accessibility. To detect the type of your Java application, check the
cls attribute (window class name) in UiExplorer. The class name should be similar to
The Java extension can also be installed using the ScreenScrapeJavaSupport tool.