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.


How do I run Jira on AdoptOpenJDK?

When installing Jira 7.13.1 (or higher) you can set it up to run on AdoptOpenJDK. As an example for AdoptOpenJDK (version 8):

  • set up AdoptOpenJDK version 8

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

  • start up Jira

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


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



  • 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 


  • 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"


Start up Jira after doing the configuration above and check atlassian-jira.log 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 9, 2022

Was this helpful?

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