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

The JRE_HOME environment variable is not defined correctly", While Launching the Bamboo Server

sai pokala August 23, 2022

System variables:

JAVA_HOME: C:\Program Files\Java\jdk-18.0.2.1\bin
JRE_HOME: C:\Program Files\Java\jre1.8.0_341\bin

 

C:\Program Files\Bamboo>java -version
java version "18.0.2.1" 2022-08-18
Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)

 

C:\Program Files\Bamboo>echo %JAVA_HOME%
C:\ProgramFiles\Java\jdk-18.0.2.1\bin

C:\Program Files\Bamboo>echo %JRE_HOME%
C:\ProgramFiles\Java\jre1.8.0_341\bin

 

 

getting below error

C:\Program Files\Bamboo>bin\start-bamboo.bat

To run Bamboo in the foreground, start the server with start-bamboo.bat /fg

Bamboo Data Center
Version : 8.2.5


If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows

The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program

 

Thanks in advance

2 answers

1 accepted

2 votes
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2022

Hello @sai pokala, Welcome to Atlassian Community!

As per your description, it appears you are missing a space between "Program" and "Files" on both JAVA_HOME and JRE_HOME environment variables values.

C:\Program Files\Bamboo>echo %JAVA_HOME%
C:\ProgramFiles\Java\jdk-18.0.2.1\bin

C:\Program Files\Bamboo>echo %JRE_HOME%
C:\ProgramFiles\Java\jre1.8.0_341\bin

Alternatively, you can use "C:\PROGRA~1" to avoid spaces.

Please fix that and try again.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful--  

sai pokala August 23, 2022

after making space changes.

 

i am getting new space error and same jre home error

 

C:\Program Files\Bamboo>java -version
java version "18.0.2.1" 2022-08-18
Java(TM) SE Runtime Environment (build 18.0.2.1+1-1)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)

C:\Program Files\Bamboo>echo %JAVA_HOME%
C:\Program Files\Java\jdk-18.0.2.1\bin

C:\Program Files\Bamboo>echo %JRE_HOME%
C:\Program Files\Java\jre1.8.0_341\bin

C:\Program Files\Bamboo>bin\start-bamboo.bat

To run Bamboo in the foreground, start the server with start-bamboo.bat /fg

Bamboo Data Center
Version : 8.2.5

JAVA_HOME "C:\Program Files\Java\jdk-18.0.2.1\bin" contains spaces. Please change to a location without spaces if this causes problems.

If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows

The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
C:\Program Files\Bamboo>

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2022

Hello @sai pokala

Use:

JAVA_HOME=C:\PROGRA~1\Java\jdk-18.0.2.1
JRE_HOME=C:\PROGRA~1\Java\jre1.8.0_341

Or move the location to a place folder without spaces.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful--  

sai pokala August 23, 2022

C:\Program Files\Bamboo>echo %JAVA_HOME%

C:\PROGRA~1\Java\jdk-18.0.2.1\bin

C:\Program Files\Bamboo>echo %JRE_HOME%
C:\PROGRA~1\Java\jre1.8.0_341\bin

C:\Program Files\Bamboo>bin\start-bamboo.bat

To run Bamboo in the foreground, start the server with start-bamboo.bat /fg

Bamboo Data Center
Version : 8.2.5

The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
C:\Program Files\Bamboo>

 

 

after changing location

C:\Program Files\Bamboo>echo %JAVA_HOME%
C:\oracle\Java\jdk-18.0.2.1\bin

C:\Program Files\Bamboo>echo %JRE_HOME%
C:\oracle\Java\jre1.8.0_341\bin

C:\Program Files\Bamboo>bin\start-bamboo.bat


To run Bamboo in the foreground, start the server with start-bamboo.bat /fg

Bamboo Data Center
Version : 8.2.5



The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2022

Hello @sai pokala 

Please do not use \bin on the environment variables:

Use:

JAVA_HOME=C:\PROGRA~1\Java\jdk-18.0.2.1
JRE_HOME=C:\PROGRA~1\Java\jre1.8.0_341

If that doesn't work, we advise you to open a ticket with Atlassian in case you have a valid support entitlement.

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful--  

sai pokala August 23, 2022

it worked now.

C:\Program Files\Bamboo>echo %JAVA_HOME%
C:\oracle\Java\jdk-18.0.2.1

C:\Program Files\Bamboo>echo %JRE_HOME%
C:\oracle\Java\jre1.8.0_341

thanks @Eduardo Alvarenga 

Like Eduardo Alvarenga likes this
0 votes
Danvale Times
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!
March 19, 2024

I faced the same issue while working on a project. I didn't know how to solve it but my friend helped me a lot in this regard, the issue was resolved easily. What created the issue was that I gave 2 spaces between bamboo and the closed bracket. This small mistake gave me headache for a week.
Later, I found some really useful products that helped me in my life. these are called Bamboo Products

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events