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

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

706 views 0 4
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
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