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:

the example is (under Windows):

  • C:\Program Files\Java\JDK7

However on this page:

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
Accepted answer

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

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!


Suggest an answer

Log in or Sign up to answer
Community showcase
Published 12 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

95 views 1 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