Agent Startup Fails With Message "The system cannot find the file specified. (0x2)"
When starting a Bamboo Remote Agent, the startup process fails reporting the following messages in the
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.
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.
- Check the
- Check the
PATHenvironment variable definition and ensure that the correct Java JDK is defined before the
Alternatively, if just setting the variables does not work, please:
Edit the property wrapper.java.command located in the file
<bamboo-agent-home>/conf/wrapper.confso that it points to the Sun JDK Java binary file:
- Restart the Agent.