Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo won't use the correct JAVA_HOME on Windows

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. 

 

1 answer

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.

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. 

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
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

166 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you