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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,943 views 27 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