How do I install Stash as a Windows Service after upgrading an existing instance?

I followed the instructions at

but service.bat tells me that my jre path needs to point to a jdk path.

My existing local services entry is rather old and does not seem to work.


1 answer

0 votes

Hi Bastian,

Could you please share the exact commands being run and the error you get?

I'd like to point out that the newest Stash installer will perform the Windows Service installation automatically for you. You can follow the guidelines on the Stash upgrade guide.

I'd encourage you to use the installer for this purpose.


Can you please also do an "echo of %JAVA_HOME%" and an "echo %JRE_HOME%"? Botom line: If you defined something on JAVA_HOME that _must_ point to a JDK. If you defined something on JRE_HOME it must point to a JRE.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,960 views 7 10
Read article

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