How Do I update the java plugin in stash?

I'm currently building a Test Stash server version 3.4.1. It is installed on a Linux Machine (Red hat enterprise Linux server version 6.7) I have it pretty much running. I'm building it with the purpose of mimicking my production server because I will run an upgrade to the latest Bitbucket release; However even though  I was able to install all the plugins that are currently being used on the productions server, I could not install one: stashbot

When trying to install it, it would hang for ever on the UI and stash would tell me that there was an error installing the said add on. according to this website: I went ahead and checked the java version of both stash servers (the test server and the production server), and I notice that on my stash test sever the java plugin version is 1.7 not 1.8 as stashbot requires. I need help on this (Thanks in advance):

How my prod server is actually pointing to /apps/stash/jdk1.8.0_40 ?

Production server:


Test Server:

How do I update or install the new java version (1,8) in a non-root location on my test server so as to being able to install stashbot?

Your help will be infinitely appreciated. Thank you


1 answer

Hi Jesse,

I think that if you just download and install a JDK 1.8, then point your JAVA_HOME to it, that should do the trick (you may refer to step 2 under for setting JAVA_HOME).

If you actually do not want do to it as root, or can't do it as root, you may download the tarball from Oracle, unzip it wherever you like then properly set your JAVA_HOME and PATH, as stated in


Gustavo Refosco

Thanks for your help Gustavo, the situation that I see here is that, the procedure stated on it only works for shell ran by a specific user, however stash is running as a service and it does not create a shell to run into As far as I can see it only applies to java applications ran from a shell either in the forground or the background, on the fly. What I mean is that the user manually runs the applications from the given shell. Please correct me if I'm wrong. Thanks again for you feedback.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

284 views 0 12
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