Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-21502

Config.bat fails after clean stand-alone installation of Jira because of missing environment variables

    XMLWordPrintable

Details

    Description

      After a clean installation, that has no prior Java instalation, the stand-alone install of Jira will not register the JRE_HOME or JAVA_HOME environment variables and set them to the JRE directory of the bundled JRE. Alternatively, the config.bat could (or should) try to load Java from the default installation location, but it doesn't, nor is the new Java executable path added to the %PATH%.

      Result: double-click config.bat (as many instructions require), will shortly flash a DOS window, but further nothing. When run from a command window, it will show the following output:

      No JRE_HOME or JAVA_HOME environment variable is set - attempting to just run 'java' command
      '"java"' is not recognized as an internal or external command, operable program or batch file.

      Resolution: many approaches are possible, but the simplest is probably to set a JIRA_HOME environment variable and use that instead. The %JIRA_HOME%\jre would then be the correct location.

      Workaround

      Set the %JAVA_HOME% as in setting JAVA_HOME. This will be either of the following depending upon the OS used:

      • C:\Program Files\Atlassian\JIRA\jre
      • C:\Program Files\Atlassian (x86)\JIRA\jre
      • /opt/atlassian/jira/jre

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              9db835d02945 Abel Braaksma
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: