What should the $JAVA_HOME be set to for Jira Software 7?

/bin/java?

 

 

1 answer

Ideally, it should point to where your JAVA (version 8) is installed. What environment do you have? Try to locate it or "which" it or search it smile

Note: There's a feature to ship Atlassian products with its own JDK, I'm not sure if it was implemented in JIRA 7.

which returns /bin/java

Thanks Gabrielle.  I am installing on centos 7  using the .bin installer which does install open jdk version 1.8.0_71.

so I edit the /etc/environment file to have the line $JAVA_HOME=/bin/java then correct?

Thanks for your time.

It should be the folder where your jdk is located. In CentOS, I think its something like /usr/lib/jvm/<jdk folder name>. Basically you need to make sure that this folder has the javac and java executibles.

For the path, the JAVA_HOME should be set to the base installation of the whole Java installation.  You've run "which java" which tells you what java runs according to your path, but that's not the installation.  If you try "ls -l /bin/java", you'll find it's actually a symbolic link to somewhere else (and often, the target is also a symbolic link).  You need to follow those to the end point, which will be something like /usr/share/jvm/oracle_java_1.8.16/bin/java.  The base install is (usually) the directory above the bin, so for my example, you'd set it to /usr/share/jvm/oracle_java_1.8.16

But as Gabrielle says, if you've used the installer, it should have done all the work for you - java home being set by the scripts it's built for you!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,897 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot