JIRA config tool says wrong JVM, but it's not!

I need to run the JIRA config tool to change my JIRA's database connection.  So I went to the bin folder (installed on a Windows Server) and ran the config batch file.  This is what I get:

C:\Program Files\Atlassian\JIRA\bin>config
******* Wrong JVM version! JIRA requires at least 1.8 to run. *******

So I check the JAVA_HOME variable and it's set properly (actually, there is no older version of Java installed on this machine as far as I know):

C:\Program Files\Atlassian\JIRA\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_73
C:\Program Files\Atlassian\JIRA\bin>echo %JRE_HOME%
C:\Program Files\Java\jre1.8.0_73

I set it up this way because I am trying to run Bamboo as well on this server and had read this is the correct configuration of Java variables, although I haven't been successful yet.  At any rate, I change the environment variable for JAVA_HOME to point to the JRE, but I still get the same error from the config tool.  Also, after stopping all of the services, I can longer start Bitbucket or Bamboo now.  It tried to start the services briefly, then immediately stops and gives me an error with no info about why.  

So I'm very stuck now, and in the middle of trying to evaluate these products for purchase.  Any help in getting these up and running is very much appreciated!



2 answers

1 accepted

Check the setenv.bat script to see where/which Java your JIRA is using. 

And/or the config.bat (both can be found in the bin directory). You may need to explicitly specify which Java your JIRA needs to use here.

It was set to the jre that ships with JIRA in the setenv batch file.  Kind of shocking that the jre that ships with JIRA can't be used to run the config tool, but that's another issue...  So I changed it to point to the new jre I just setup.  I'm not entirely sure about the config batch file.  It looks like it's pointing to the JRE_HOME path:

REM Use the java from (1) JRE_HOME or (2) JAVA_HOME; supports spaces in these paths
set _EXECJAVA=%JRE_HOME%\bin\java

I tried changing it to this:


But both still give me the same Wrong JVM version! error when I run config.  How do I force setenv to run again and pick up the new JVM path?

Thanks for your help!

You should have something like this.

JRE_HOME=C:\Program Files\Java\jdk1.8.0_73

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,327 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot