IT updated java and the Bitbucket is looking for the old path, any suggestions?  Our bitucket server won't start, JIRA is okay.


we updated JAVA_HOME environment path variable  but no matter what we do it keeps looking for the old path.


Would you also please confirm which 32 bit or 64 bit of java Bitbucket wants?



3 answers

What environment are you in? Check the (setenv.cmd) and check the JAVA_HOME variable.

IT found where it was hard coded into the registry

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\AtlassianBitbucket\Parameters\Java]



we are on windows 2008 server

the errors kept pointing us to JAVA_HOME but that didn't work.

we updated that value and it seems to be working. 

hi Greg,

Can you check the env variables of the userid which is running the java process of the application.We faced something similar where we were starting the server as root and setting the root env variable to the latest version of Java where as we used use a different id to run the application.the application had JAVA path hard coded and it used to over ride the roots JAVA path and was picking up the old path


we initially tried updating the environment variables because that is what the error logs indicated

after updating them and still receiving errors we debugged the problem to hard coded registry keys

Hi Greg,

  Are u running the service as non admistrator for security resaons.We need to check the Java path of non admistrator user id which is running the process.





we are on windows 2008 server and were running it with usernames that were both in the administrator group.

I installed it while logged in on my account ~3 months ago

IT updated JAVA late last week

and Monday this week we were trouble shooting debugging on the IT's user account.

again both IT's username and mine are in the administrator group on a windows 2008 server

we were modifying the system environment variables with his username and I verified no user environment variables related to JAVA with my account.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables ROLLBAR_ACCESS_TOKEN...

162 views 0 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you