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

This widget could not be displayed.

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 Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,296 views 8 11
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