# Java error on jenkins while trying to add jenkins agent

**URL:** <https://community.jenkins.io/t/java-error-on-jenkins-while-trying-to-add-jenkins-agent/24953>\
**Category:** Ask a question\
**Created:** [December 20, 2024, 4:59am UTC](https://community.jenkins.io/t/java-error-on-jenkins-while-trying-to-add-jenkins-agent/24953 "2024-12-20T04:59:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [December 20, 2024, 2:07pm UTC](https://community.jenkins.io/t/java-error-on-jenkins-while-trying-to-add-jenkins-agent/24953/3 "2024-12-20T14:07:28Z")

</div>

> [@jatin765](#):
>
> `java.io.IOException: error=0, Failed to exec spawn helper`

I think that I remember a change in a Java upgrade that caused the Java spawn helper script to change name or otherwise become different between one Java update and the next. You might want to be sure that the agent has been stopped and restarted since the most recent Java patch was applied.

Refer to [Jenkins issue: FATAL: command execution failed - #8 by jspiewak](https://community.jenkins.io/t/jenkins-issue-fatal-command-execution-failed/12460/8) for more details.

---

_[View the full topic](https://community.jenkins.io/t/java-error-on-jenkins-while-trying-to-add-jenkins-agent/24953)._
