# Gateway not Starting - Unable to execute Java command. The system cannot find the file specified. (0x2)

**URL:** <https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [May 10, 2021, 8:39pm UTC](https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551 "2021-05-10T20:39:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [May 10, 2021, 8:39pm UTC](https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551/1 "2021-05-10T20:39:20Z")

</div>

Have been running this ignition gateway for a couple of years now and encountered this issue today with the gateway not starting even after rebooting server (reboot took place around 15:30 today 5/10/2021). Everything was working fine as of 14:00 or so. Server is not managed by our IT and I checked with the handful of individuals that have access to the machine and no changes have been made to the server.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c70a787063d53bdf30d2c5e85885f1c343e7149.png)

Followed these 2 other posts, but still having issues

- Have not downgraded ignition
- have not upgrade java
- have not restored backup
- Don’t see EMET installed
- don’t have a runtime directory within lib directory nor do I have a jre-win.zip or exe anywhere in lib directory

[http://forum.inductiveautomation.com/t/gateway-not-starting/31217](http://forum.inductiveautomation.com/t/gateway-not-starting/31217)  
[https://support.inductiveautomation.com/hc/en-us/articles/360047175452-Ignition-service-will-not-start-giving-NET-HELPMSG-3547-or-Windows-Services-showing-service-specific-error-code-1](https://support.inductiveautomation.com/hc/en-us/articles/360047175452-Ignition-service-will-not-start-giving-NET-HELPMSG-3547-or-Windows-Services-showing-service-specific-error-code-1)

Service will not start via services list either.

**Wrapper file output**  
[wrapper.txt](https://forum.inductiveautomation.com/uploads/short-url/uSo5JTAVv1Pucw6yZ3IliSK0LPb.txt) (2.6 MB)

**Config file**  
[ignition.txt](https://forum.inductiveautomation.com/uploads/short-url/63ToTxaA37ongx929N2RHWSjmRS.txt) (8.7 KB)

---

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [May 10, 2021, 8:50pm UTC](https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551/2 "2021-05-10T20:50:06Z")

</div>

Actually on reboot prompted an update from windows. Looks like this is the new build. Noticed the log doesn’t show that error before the reboot.

[https://support.microsoft.com/en-us/topic/april-13-2021-kb5001342-os-build-17763-1879-52e9180d-0cd3-4ab9-8a35-514c07ea9e08](https://support.microsoft.com/en-us/topic/april-13-2021-kb5001342-os-build-17763-1879-52e9180d-0cd3-4ab9-8a35-514c07ea9e08)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 10, 2021, 8:50pm UTC](https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551/3 "2021-05-10T20:50:55Z")

</div>

Have you looked in the folder from your config file to see if `java.exe` is there?

Based on this entry in your config:

```auto
wrapper.java.command=C:/Program Files/Java/jdk1.8.0_201/jre/bin/java.exe

```

The version is spelled out in the config file, so any change to java would have broken that path.

---

<div class="post-metadata">

**Author:** ![jlopez](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jlopez](https://forum.inductiveautomation.com/u/jlopez)\
**Post date:** [May 10, 2021, 8:58pm UTC](https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551/4 "2021-05-10T20:58:33Z")

</div>

Thanks a ton! that was the issue

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 10, 2021, 9:04pm UTC](https://forum.inductiveautomation.com/t/gateway-not-starting-unable-to-execute-java-command-the-system-cannot-find-the-file-specified-0x2/46551/5 "2021-05-10T21:04:06Z")

</div>

Which means Java _was_ upgraded.
