JAVA_HOME points to JRE or JDK directory? - conflicting doco

Hi I am installing the zip version of Confluence for the first time and there are two conflicting settings for JAVA_HOME on two linked Atlassian web pages:

On this page:

https://confluence.atlassian.com/display/DOC/Installing+Java+for+Confluence

the example is (under Windows):

  • C:\Program Files\Java\JDK7

However on this page:

https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows

the example is:

  • C:\Progra~1\Java\jre6

The first example implies that JAVA_HOME should be set to the JDK directory, but the second example shows it set to the JRE directory.

Which is right?

It would be good if the documentation was updated to help future installers.

Regards Steve

2 answers

1 accepted

0 votes
Answer accepted

Pointing to JDK works at least for me. Stick to that. :)

Joachim,
I don t like "blackbox" answers.

Every JDK contains a JRE (directory).

So, point to the JDK1.x.x(\bin) or the JDK1.x.x\JRE(\bin), depending if you just need a JRE (mostly) or a JDK.

One black niche: Some JVM installations have Jxx\Client, some Jxx\Server, some both (Jxx meaning both, JDK or JRE) for start- or runtime optimization.
Presence seems random.
Even one of our lead Java devs couldn t finally say what the fallback would be if -server is specified and the dir is missing.

Another thing is that the 64 bit rev 67 JDK install explicitly installed a separate JRE in addition to the jdk1.7.0_67\jre that was there anyway. <sigh>

But I guess your answer is: I think every Confluence installation comes with a private JRE in Atlassian\Confluence!

Greetings
G.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,023 views 2 13
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