# Java error in remote environment

**URL:** <https://forum.uipath.com/t/java-error-in-remote-environment/523216>\
**Category:** Activities\
**Tags:** question, java, uiautomation, activities\
**Created:** [March 6, 2023, 2:46am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216 "2023-03-06T02:46:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![simyname1022](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@simyname1022](https://forum.uipath.com/u/simyname1022)\
**Post date:** [March 6, 2023, 2:46am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/1 "2023-03-06T02:46:56Z")

</div>

When I tried to use the click activity in the remote environment, the phrase came out.

 ![asdaf](https://global.discourse-cdn.com/uipath/original/4X/6/6/1/6610ed6511976d6e0599c31771c370c07371b217.png)

When I clicked OK to proceed with the installation, the message appeared

How should I solve it?

---

<div class="post-metadata">

**Author:** ![Tuannna1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tuannna1/32/383338_2.png) [@Tuannna1](https://forum.uipath.com/u/Tuannna1)\
**Post date:** [March 6, 2023, 3:27am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/2 "2023-03-06T03:27:00Z")

</div>

Hi @simyname1022

Can I get a text error code, specifically the message in the picture?

Regards,  
TuanNNA

---

<div class="post-metadata">

**Author:** ![simyname1022](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@simyname1022](https://forum.uipath.com/u/simyname1022)\
**Post date:** [March 6, 2023, 4:06am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/3 "2023-03-06T04:06:40Z")

</div>

We detected that you are trying to capture in a Java window that uses a custom JRE.  
Would you like to install the Java support files?

IMPORTANT : before installing you have to close the Java application!

and

The following paths are invalid or do not contain JRE:  
“C\eCentre\_SEC\java\jre”

The text in the picture is this phrase.

---

<div class="post-metadata">

**Author:** ![Tuannna1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tuannna1/32/383338_2.png) [@Tuannna1](https://forum.uipath.com/u/Tuannna1)\
**Post date:** [March 6, 2023, 4:12am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/4 "2023-03-06T04:12:22Z")

</div>

> [@simyname1022](#):
>
> When I clicked OK to proceed with the installation, the message appeared
> 
> How should I solve it?

Hi @simyname1022

This error message indicates that the Java support files are not installed or configured properly on your system. Here are some steps you can follow to resolve this issue:

1. Close any Java applications that are currently running.
2. Check the path mentioned in the error message (“C\eCentre\_SEC\java\jre”) to ensure that it exists and contains a valid JRE.
3. If the path is invalid or does not contain a valid JRE, you may need to reinstall Java on your system and ensure that it is configured properly.
4. Once you have a valid JRE installed, try running the UiPath click activity again and follow the prompts to install the Java support files.

In general, it’s important to ensure that you have the correct versions of Java and the UiPath software installed and configured properly, as these can often cause issues when interacting with Java applications or other third-party software.

---

<div class="post-metadata">

**Author:** ![Tuannna1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tuannna1/32/383338_2.png) [@Tuannna1](https://forum.uipath.com/u/Tuannna1)\
**Post date:** [March 6, 2023, 4:14am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/5 "2023-03-06T04:14:18Z")

</div>

Another possible solution to this issue is to configure UiPath to use the correct JRE path.

To do this, follow these steps:

1. Go to the UiPath installation folder and locate the UiPath.Java.Activities.dll.config file.
2. Open the file using a text editor and locate the element.
3. Change the value of the element to the correct path of the JRE on your system.
4. Save the file and close the text editor.
5. Restart UiPath and try running the click activity again.

If you’re not sure where the correct JRE path is located on your system, you can try searching for it using the Windows search function or by checking the Java installation directory.

---

<div class="post-metadata">

**Author:** ![simyname1022](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@simyname1022](https://forum.uipath.com/u/simyname1022)\
**Post date:** [March 6, 2023, 4:38am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/6 "2023-03-06T04:38:25Z")

</div>

Should I recover in the same way for remote situations?

---

<div class="post-metadata">

**Author:** ![Tuannna1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tuannna1/32/383338_2.png) [@Tuannna1](https://forum.uipath.com/u/Tuannna1)\
**Post date:** [March 6, 2023, 4:43am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/7 "2023-03-06T04:43:32Z")

</div>

Have you fixed the error yet?

---

<div class="post-metadata">

**Author:** ![simyname1022](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@simyname1022](https://forum.uipath.com/u/simyname1022)\
**Post date:** [March 6, 2023, 4:48am UTC](https://forum.uipath.com/t/java-error-in-remote-environment/523216/8 "2023-03-06T04:48:20Z")

</div>

Couldn’t fix the error yet
