Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-43770

No JRE_HOME or JAVA_HOME in linux server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Gathering Impact (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Installation
    • Labels:
      None

      Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Problem

      When using the Linux installer for JIRA, the bundled JIRA Configuration Tool does not start, unless you have a local Java installation properly configured on your system. This is problematic, as the Linux installer does bundle Java, but config.sh never picks up those variables.

      Symptoms

      You will notice the following error on the console:

      No JRE_HOME or JAVA_HOME environment variable is set - attempting to just run java command

      In addition, the configuration tool is not launched.

      Note: If you have a working java command, the tool may still launch while seeing the above warning.

      Workaround

      Install Java

      The best solution is to install Java for JIRA, preferably the latest from the supported platforms page of your JIRA version.

      This is recommended anyways, as generally new Java versions bring security and performance improvements.

      Use the bundled Java

      You can invoke setenv.sh from the same bin directory where config.sh can be found. This should set the bundled Java's environment variables. Best is to invoke setenv.sh in config.sh.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                karla.bernal.f Karla Bernal
              • Votes:
                5 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: