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

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

[XX@XXX bin]# ./start-bitbucket.sh
The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Edit set-jre-home.sh 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 set-jre-home.sh file, can you have a look at it and make sure it's the correct value ? 

 

Let me know if this helps, 

 

--Alexis

Yes!

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.

JRE_HOME="/home/appadmin/atlassian/bitbucket/5.10.1/jre/bin"

 

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 ? 

 

--Alexis

Nothing has been changed.

I use ./start-bitbucket.sh 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 set-jre-home.sh file ? and also, what is the result of 

echo $JRE_HOME

This will help identify the issue.

 

Thanks, 

 

--Alexis

Like nancy_d_matthews likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,757 views 10 16
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