# Agent Startup.bat Java Error

**URL:** <https://community.automationedge.com/t/agent-startup-bat-java-error/1930>\
**Category:** Get Help & Discuss\
**Tags:** rpa\
**Created:** [April 6, 2020, 7:39pm UTC](https://community.automationedge.com/t/agent-startup-bat-java-error/1930 "2020-04-06T19:39:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbaldin](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/fbaldin/32/99_2.png) [@fbaldin](https://community.automationedge.com/u/fbaldin)\
**Post date:** [April 6, 2020, 7:39pm UTC](https://community.automationedge.com/t/agent-startup-bat-java-error/1930/1 "2020-04-06T19:39:23Z")

</div>

As I tried to start the agent I’m getting the following error message:

**WARNING: Using JAVA from path**  
**’“java.exe”’ is not recognized as an internal or external command, operable program or batch file.**

the JAVA\_HOME Path is Set as below:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/732e5ea0f46a2c29e1520f71cc4ad17a5f5bed68.png)

---

<div class="post-metadata">

**Author:** ![fbaldin](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/fbaldin/32/99_2.png) [@fbaldin](https://community.automationedge.com/u/fbaldin)\
**Post date:** [April 7, 2020, 12:35am UTC](https://community.automationedge.com/t/agent-startup-bat-java-error/1930/2 "2020-04-07T00:35:23Z")

</div>

Hi Problem Solved.

Just need to add the bin directory to the Path to the user variables as shown below:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/3f564bc8a788697b117a5cd3dd9e80182c87a22a.png)
