Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start JIRA 8.4.1 due to JRE_HOME?

Adrian Lazar
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!
July 8, 2021

Hello there,

JIRA 8.4.1 won't start due to JRE_HOME not being set correctly? Please help. I don't see any issues with the installation of JAVA or JRE.

C:\Program Files\Atlassian\JIRA8\bin>start-jira

To run JIRA in the foreground, start the server with start-jira.bat /fg

`sMMMMMMMMMMMMMM+
MMMMMMMMMMMMMM
:sdMMMMMMMMMMM
MMMMMM
`sMMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sMMMMMMMMMMM MMMMM
MMMMMM `UOJ
`sMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sdMMMMMMMMMM MMMMM
MMMMMM `UOJ
MMMMMM
+MMMMM
MMMMM
`UOJ

Atlassian Jira
Version : 8.4.1


If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at https://docs.atlassian.com/ji
ra/jadm-docs-084/Troubleshooting+installation

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

C:\Program Files\Atlassian\JIRA8\bin>echo %JRE_HOME%
C:\java\jre1.8.0_291\bin

 

C:\Program Files\Atlassian\JIRA8\bin>java -version
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) Client VM (build 25.291-b10, mixed mode, sharing)

2 answers

1 vote
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2021

We don't start Jira that way (we run it as a service), but nonetheless, when I check our environment variables, we don't have a JRE_HOME, but we do have a JAVA_HOME. Even though the error message cites JRE_HOME, perhaps the cause is a lacking JAVA_HOME? Maybe make sure you have that variable defined. It points to our jre directory, i.e.

JAVA_HOME=C:\Program Files\Atlassian\JIRA\jre

Casper Hjorth Christensen
Contributor
July 11, 2021

Hi @Payne 

If you are running your application on a windows environment, you do not need to have either JRE or JAVE_HOME defined in your system variables.

In fact, removing them as system variables might actually help you out.

My above guide is based on the presumption that you are running the application (haven't yet met an Atlassian product where it doesn't work) as a service.

Doing the above will allow you to easily see and set all the info that is in your "Setenv.bat" file.

e.g. memory usage at startup (min) and Max memory usage.

You will also be able to see and force the usage of a specific JRE/JAVA application.

1 vote
Casper Hjorth Christensen
Contributor
July 9, 2021

Hi @Adrian Lazar 

What OS is the application running on?

Jira will come with its own JRE, which can be used to run tomcat.

For windows, you can safely remove any manually installed JAVA/JRE from the system.

Once done, and server has been restarted, you can force JIRA to use its own JRE

Find your Jira Service name (Services -> Right click on "Atlassian Jira" -> C&P the Service name)

start cmd as admin

navigate to your "Jira-installation directory"\bin

run your TomcatwX.exe //ES//<Service Name>

e.g. 

"Jira-installation directory"\bin>tomcat8w.exe //ES//JIRASoftware291020082345

 

navigate to your the Java tab

Ensure that the "Default" marker is NOT set, and the "Java Virtual Machine" points to; 

"Jira-installation directory"\bin\server\jvm.dll

 

Jira should start just fine now.

Otherwise please do provide the Catalina log

Suggest an answer

Log in or Sign up to answer