Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo won't use the correct JAVA_HOME on Windows

Mike Kauspedas January 7, 2022

I have bamboo installed on win2012r2. Environment variables are set for java_home and jre_home. Despite that, Bamboo keeps trying to use "C:\Program Files\Java\jdk-16". 

JAVA_HOME = C:\Progra~1\Java\jre1.8.0_311

C:\Users\meh>echo %JAVA_HOME%
C:\Progra~1\Java\jre1.8.0_311

JRE_HOME = C:\Progra~1\Java\jre1.8.0_311

C:\Users\meh>echo %Jre_HOME%
C:\Progra~1\Java\jre1.8.0_311

Since it keeps looking in that jdk folder I ended up just copying jre1.8.0_311 into a jre folder and got bamboo started, but I'd like to get it running properly. 

Running Atlassian Bamboo version 8.0.4 build 80012 - 27 Oct 21. 

 

2 answers

0 votes
Laine Kahsay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2023

Choose the path that Bamboo should use,
you can edit the file conf/wrapper.conf and make changes to the line
wrapper.java.command=java.

An example is wrapper.java.command=C:\Program Files\Java\jdk1.8.0_35\bin\java

0 votes
Dave Theodore [Coyote Creek Consulting]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2022

How are you setting the JAVA_HOME and JRE_HOME variables? Are you running the `echo` commands as the user that Bamboo runs as? You either need to set the global variables and not set variables for the user Bamboo runs as or only set the variables for the user Bamboo runs as.

Mike Kauspedas January 10, 2022

Thanks for replying. I have them set under system properties --> environment variables --> system variables. That should be global for all users right? I did not run the echo as the bamboo user. 

Dave Theodore [Coyote Creek Consulting]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2022

It's a little tricky to troubleshoot without knowing how you have things set up.  When we set up any of the Atlassian tools on Windows, we set them to start as a service and create a service account for them to run as an unprivileged user(to be more secure.) Check this doc on how to set up the service.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events