Java JDK vs Java JRE

According to the Stash documentation,

Download and install the Java Platform JDK (not the JRE) from Oracle's website.

Would like to know whats the difference and how do I determine? What kind of message would there be upon setting up Stash? I do not know if I have the right Java (jre or jdk?) installed.

2 answers

1 accepted

Hi Sue,

Actually that documentation is slightly out of date. For legacy reasons the Atlassian products required that we run with the JDK, and recently in Stash we re-evaluated that requirement and it's no longer valid.

Regarding the question, the name f the directory will usually be fairly clear about which one you have. Are you running Windows or Linux? On Linux you should probably try running 'java -version' and 'which java' and that might give you an idea.

Either way Stash will not fail if you have the JRE instead of JDK so it doesn't really matter.

I'll talk to our tech-writer as well to getting the documentation updated.

Cheers,

Charles

Thanks Charles for the clarification. Was afraid that there could be a difference for the "wrong Java" installed.

Well, the inconsistency in the docs made me pause and evalute for 30 minutes at java setup stage.. I ended up unpacking the Server JRE tarball in C:/Program Files/Java manually and setting JAVA_HOME variables to C:/Progra~1/Java/jdk.7.x/jre, not C:/Progra~1/Java/jdk.1.7.x. Also set the PATH variable accourding to java home variable

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,216 views 26 12
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