How to run Jira Server on AdoptOpenJDK

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.


Problem

How do I run Jira on AdoptOpenJDK?

When installing Jira 7.13.1 (or higher) you can set it up to run on AdoptOpenJDK (version 8)

  • set up AdoptOpenJDK version 8

  • edit <jira_install_dir>/bin/setenv.sh to update/add the environment variables

  • start up Jira

Add the following line in the <jira_install_dir>/bin/setenv.sh as one of the first lines:

JAVA_HOME=""

The JAVA_HOME variable can be set in setenv.sh to control which JDK will be used when running Jira.

Configuration

Environment

  • Download the correct Adopt OpenJDK version 8 archive for your operating system, for ex. Linux x64

  • Extract the archive into a system folder, optionally set JAVA_HOME to the extracted folder path (if you will use OpenJDK as default on system), and add the <openjdk_folder>/bin to the PATH variable
  • For AWS spun instances using Jira template, it will use the default jre. You can find the installed adoptopenjdk and other JDK verions using the below command on linux, then set the  <openjdk_folder>/bin to the PATH variable

    alternatives --config java 

Edit setenv.sh

  • set JAVA_HOME to the <openjdk_folder>, for example: JAVA_HOME="/usr/lib/jvm/jdk8u202-b08/"

  • set PATH to include the <openjdk_folder>/bin, for example: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/lib/jvm/jdk8u202-b08/bin"

Resolution

Start up Jira after doing the configuration above and check that it is starting up correctly and responding as expected.


DescriptionHow to run JIRA Server on Adopt OpenJDK
ProductJIRA Server, JIRA Data Center

Last modified on Aug 30, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.