Unable to run config.bat

Hi,

I'm having an issue where I cannot run the config.bat. I end up getting:

C:\Program Files\Atlassian\JIRA\bin>config.bat
'"C:\Program Files\Java\jre1.8.0_144\bin\jre\"' is not recognized as an internal or external command,
operable program or batch file.

after adding the environment variable. I followed what I found here: https://jira.atlassian.com/browse/JRASERVER-59656 

Nothing seems to be working. I need to migrate the database over to SQL Server.

Any ideas? 

Thanks!

2 answers

Actually, strange thing. I removed the environment variable and config.bat ran. I even changed my check-java.bat back to the original that shipped.

0 vote

Hi Travis,

As an alternative you can modify the dbconfig.xml directly.  You can use the Sample dbconfig.xml file in the Connecting JIRA applications to SQL Server 2012 knowledge base for reference.  That should at least get you past the portion where you need to connect to the new database so you can proceed.

As to why the config.bat is failing even after following those steps, I did find some information that may be of assistance:

there is a " missing after %_EXECJAVA:
for /f "tokens=2 delims=." %%a in ('"%_EXECJAVA" -version 2^>^1') do (

Because of that, our Java version could not be determined. The version could be determined after we manually added " in line 12.

I was unable to verify as I do not have a Windows installation, however, that came from a Support ticket and the user requested the ticket be closed so you may try that and see if that helps.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,060 views 15 13
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