Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How can the error be fixed. No changes made & similar problem solutions never worked Bitbucket5.10.1

[XX@XXX bin]# ./
The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Edit and define JRE_HOME

Startup has been aborted

1 answer

0 votes
Alexis Robert Community Leader Apr 17, 2020

Hi @nancy_d_matthews , 


the error message says to check the JRE_HOME setting in file, can you have a look at it and make sure it's the correct value ? 


Let me know if this helps, 




This has been working and until yesterday as I try to start the server.

The PATH is set to the jre home inside the bitbucket folder.



And others like tomcat uses:

$JAVA_HOME =/app/appadmin/java1.8/jre1.8.0_231

Alexis Robert Community Leader Apr 17, 2020

Hi @nancy_d_matthews , 


did you change anything since yesterday ? From what I can see the JRE_HOME is correctly set but it might be because the JRE location has changed.

Also, can you let me know how you're starting Bitbucket ? Is it from the command line, or a init.d script or something else ? 



Nothing has been changed.

I use ./ from the command line on the bin directory for the start.

Alexis Robert Community Leader Apr 19, 2020

Can you check what is defined for JRE_HOME in the file ? and also, what is the result of 

echo $JRE_HOME

This will help identify the issue.





Like nancy_d_matthews likes this

Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

485 views 5 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