How to run Jira Server on AdoptOpenJDK
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
The following appears in the <jira_install_dir>/bin/setenv.sh on line 1:
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
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.