Extensions are additional utility built by UiPath to support range of automation capability with various type of application such as Java Application, Silverlight Application, Citrix Based Applications or Automating the Apps Over RDP Connection.
These extensions help to enable the native detection of UiPath elements is those environments so that that you can build the selectors easily.
However, in many cases, you will face Java Extensions issue in UiPath when the extension is not been properly enabled causing your bot to fail to identify the application elements…
This topic presents the most frequent reasons for which the UiPath Extension for Java might not work properly, and how to solve these issues.
To check if the extension is not working properly, open Explorer and try to select controls inside a Java application. If the entire window is selected, it means that the extension is not working properly.
Some Other common issues occur due to extension problem are below –
- Selector not found – You have built your automation on ‘X’ Machine however when you trying to run the Workflow on other ‘Y’ machine you are not able to identify the same element which you captured (Provided there is no change in application selector)
- Automation Stopped working Abruptly
- UiPath Robot has stopped working
Recently I was working with the Java Based application and I was not able to identify application element correctly, Whenever I was trying to indicate element using UI Explorer…The entire application window is getting selected.
I was aware that application is java based and I have enabled the Java Extension from Tool (In Side UiPath Studio) but still the problem was persistence even after trying multiple times.
After going through the multiple forum post and my colleague help finally, I was able to sort out the issue.
So, I decided to note down the steps followed for help of other community members.
So, let’s see what are the steps you should follow in case your java extension not working with UiPath application.
Installation step for Java Extension in UiPath
The UiPath Extension for Java Can be installed by doing the following steps:
(Make Sure you have local Admin Rights to perform tasks)
- First, close any running Java applications and then. Launch Studio -> Tools -> 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 /Java in a command prompt window with administrator rights.
- The UiPath Extension for Java can also be installed using the ScreenScrapeJavaSupport tool.
Studio and UI Explorer also ask to install the UiPath Extension for Java 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 UiPath Extension for Java when prompted by UI Explorer the Java Bridge files get deployed only in the JRE directory which launched the target Java application instead of the JDK directory.
Troubleshooting Java Extensions issue in UiPath
Even after installing the Java Extension Successfully You Might Face Multiple issues …. So Now, let me guide you about the multiple checks to be done which are listed below.
These tests can be performed in no order as for different application steps require to resolve the issue would be different so you need to check following steps to fix your issue.
#1. Do you have Java JRE installed on your machine?
First you should check the Java JRE Is installed in your machine –
- By lookup of Java Configure application available in Program
- By looking Java from Control Panel
If No JRE is installed on your machine, first you need to install JRE and then you should follow the steps to enable Java Extension
#2. Check the selector details to see if it’s supported by Uipath or Not?
- UiPath Extension for Java 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 SunAwtFrame or javax.swing.
If you some thing different here its not supported by UiPath at the moment
#3. How you can verify that Java Extension has been properly installed:
- Using a text editor, such as Notepad++, open the accessibility.properties file, which is located in the C:\Program Files (x86)\Java\jre1.8.0_xx\lib folder. If the extension is properly installed, the file should contain assistive_technologies=UiPath.UiPathBridge.
- In the C:\Program Files (x86)\Java\jre1.8.0_xx\lib\ext folder, you should find the UiPathBridge.jar file.
- In the C:\Program Files (x86)\Java\jre1.8.0_xx\bin folder, you should find UiPathJavaBridgeV8.dll or UiPathJavaBridgeV8_x64.dll.
#4. Check if the Required Files are been loaded by Uipath at RunTime in Studio
- In the View menu, select Lower Pane View > DLLS, or press Ctrl+D. A panel is displayed in the lower part of the window.
- Select the process of your Java app and check if UiPathJavaBridgeV8.dll or UiPathJavaBridgeV8_x64.dll are loaded by your Java app.
- Check from what path the java.dll module is loaded. A regular JRE has a path like C:\Program Files (x86)\Java\jre1.8.0_xx\bin\java.dll. A custom JRE is usually located in the application folder
- This step will help you to identify that which JRE is been used by your Process workflow
#5. Is Java Enabled on Your Machine? I mean is that configured to used inside browser if you are using Java-based web application?
Applets do not run because Java is not enabled. So, you need to make sure that Java is enabled to used inside the web browser.
You can check this using following steps –
- In the Java Control Panel, click the Security tab.
- Select the option Enable Java content in the browser.
- Click Apply and then OK to confirm the changes.
- Restart the browser to enable the changes.
You can check that using the Java Configure Tool
New Version of Chrome has already stopped support for applet so the choice in those cases is to use Internet Explorer to launch such application.
#6. Is there more than 1 JRE Installed on your machine?
- There are chances that your machine has multiple JRE installed, some of them might be packaged with the application and application is configured to use Custom JRE instead of System JRE.
- So, make sure you check which JRE has been used while using the application, Is that your system JRE or Application Custom JRE? Detection of this is simple as UiPath will prompt saying you are using Custom JRE and UiPath Need to install/copy few files
- If Application based JRE, Check the steps to identify that required files and extension has been properly installed. (See Step 3).
- If not, you need to follow below additional step to install Java Support file for all location Using the ScreenScrapeJavaSupport Tool [See Next Step -7]
#7. I have multiple Java versions installed (such as 32-bit and 64-bit), and in different locations
This is where the ScreenScrapeJavaSupport tool provided by Uipath comes in handy. It is meant to help you install and uninstall the Java extension, but also to give you info about the installed Java versions and what processes have the extension loaded.
Moreover, you can especially benefit from this tool if you have Java installed in custom locations.
The ScreenScrapeJavaSupport tool is installed with Studio, and can be found in the C:\Program Files (x86)\UiPath\Studio\UiPath\JavaSupport folder( Requires administrator privileges.)
- ScreenScrapeJavaSupport.exe /install /jrepath “<path>” – Installs the Java extension for the specified path. The path is the folder path containing the java.dll file. If the Java extension is already installed then it reinstalls it.
- ScreenScrapeJavaSupport.exe /install /default – Searches for the default Java installation folder, Program Files or Program Files (x86), and installs the Java extension there. This is because both Java x86 and x64 can be installed on the same machine.
- ScreenScrapeJavaSupport.exe /install /allDrives – Recursively searches all fixed drives for Java versions, and installs the Java extension for each one.
- ScreenScrapeJavaSupport.exe /install – Reinstalls the Java extension for all the Java versions that are currently installed. The ScreenScrapeJavaSupport tool keeps a record of each version it installs.
[See Source Documentation here – https://docs.uipath.com/studio/docs/about-the-screenscrapejavasupport-tool]
#8. Is Java Access Bridge Enabled or Disabled?
By default, the Java Bridge is not enabled when installed, so it may be that you need to enable it. You can enable and disable it using Control panel.
#9. Last Step is to see the Crash Report of UiPath whats Going Wrong
UiPath.DiagTool.exe
is a command line utility that collects various debugging information related to the OS, session, or UiPath installations such as identification information, settings, and logs.
- Navigate to the designated folder – cd C:\Program Files (x86)\UiPath\Studio
- Run the utility with the following command: UiPath.DiagTool.exe -providers=installs,logs,procs –procs.extra=UiPath.Service.Host -file “logs.zip”. This generates a standard report file which contains information collected by the specified providers and creates the archive.
- Reach out to Uipath Support with Generated Log for more details on the issue.
Please feel free to reach me in case there are any other steps followed to solve the JRE Issue.