Forums

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

Jira Config Tool - Wrong JVM

Andrew
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!
January 11, 2019

Hello,

I'm running Jira Service Desk 3.16.0 on Windows Server 2016.

When I launch C:\Program Files\Atlassian\JIRA\bin\config.bat with Admin privileges, Command Prompt returns:

 

No JRE_HOME or JAVA_HOME environment variable is set - attempting to just run 'java' command
*******************************************************************************
******* Wrong JVM version! JIRA requires at least 1.8 to run. *******
*******************************************************************************

 

I have already seen

https://community.atlassian.com/t5/Jira-questions/JIRA-config-tool-says-wrong-JVM-but-it-s-not/qaq-p/95883

Editing config.bat and adjusting value of set_EXECJAVA="%JRE_HOME%\bin\java" to set_EXECJAVA="C:\Program Files\Atlassian\JIRA\jre\bin\java" OR "...java.exe" result in the same error message.

I've also already saw

https://jira.atlassian.com/browse/JRASERVER-59656

Where I edited check-java.bat to match the listed workaround. 

Same error message.

 

Any help is appreciated!

 

Thanks,

Andrew

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2019

Instead of trying to hack at the config.bat file or other files in the /bin folder, my preferred way to approach this specific problem is instead to install Java separately, and then define my own %JAVA_HOME% system variable in Windows with that installation path.  

There are steps on how to do this in Installing Java.   There is a note there that you have to close all command prompts (cmd.exe) before this setting change takes effect.  In some cases, I have had to restart Windows after this system variable has been set for it to take effect.

While the Jira .exe and .bin installation files can bundle a Java JRE with them, it doesn't necessarily have all the java components that you would get by doing a JRE or JDK installation yourself.  So technically Jira can run with the bundled JRE, but there are other utilities built around Jira like this config tool that seem to work better with a separate Java installation and a %JAVA_HOME% defined before trying to load this java applet.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events