'JRE_HOME environmental variable is not defined correctly bamboo error
When i ran start-bamboo.bat file from windows command prompt. I faced the below errors even though JRE_HOME is defined.
The JRE_HOME environment variable is not defined correctly This environment variable is needed to run this program
Solution 1:[1]
This means that your environment didn't have JRE_HOME or JAVA_HOME environment variable set properly. You can check the validity of the path by typing in your command prompt
echo %JAVA_HOME%
echo %JRE_HOME%
If it is not set, follow the instructions mentioned in the Atlassian Documentation Setting the JAVA_HOME Variable in Windows and run your start-bamboo.bat in the same command prompt.
Solution 2:[2]
This worked for me, use the JAVA_HOME with shortened path but let the JRE_HOME with the full path:
JAVA_HOME: C:\Progra~1\Java\jdk1.8.0_101
JRE_HOME: C:\Program Files\Java\jre1.8.0_144
Hope it helps.
Solution 3:[3]
Setting just the JDK worked for me. You can try if other answers don't work for you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jeyanthan I |
| Solution 2 | Alex |
| Solution 3 | Carlos López Marà |
