Agent Startup Fails With Message "The system cannot find the file specified. (0x2)"

Still need help?

The Atlassian Community is here for you.

Ask the community


When starting a Bamboo Remote Agent, the startup process fails reporting the following messages in the <bamboo-agent-home>/atlassian-bamboo-agent.log:

FATAL  | wrapper  | 2011/04/30 17:18:35 | Unable to execute Java command.  The system cannot find the file specified. (0x2)
FATAL  | wrapper  | 2011/04/30 17:18:35 | Critical error: wait for JVM process failed
ERROR  | wrapper  | 2011/04/30 17:18:36 | The Bamboo build server service was launched, but failed to start.


Environment variables PATH, JAVA_HOME, JAVA_JDK or JAVA_JRE are pointing to the Java version distributed with Windows at C:\Windows\System32. This version of Java does not work correctly with the Agent Wrapper.


In the remote agent machine, download and install a supported Oracle JDK version and make sure that the Windows environment variables are point to it.

  1. Check the JAVA_HOME/JAVA_JDK/JAVA_JRE variables.
  2. Check the PATH environment variable definition and ensure that the correct Java JDK is defined before the c:\windows\system32 part.

Alternatively, if just setting the variables does not work, please:

  1. Edit the property located in the file <bamboo-agent-home>/conf/wrapper.conf so that it points to the Sun JDK Java binary file:
  2. Restart the Agent.


Last modified on Nov 1, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.