-
Bug
-
Resolution: Timed out
-
Medium
-
None
-
4.1, 4.1.1, 6.1.4
-
Windows 2003 SP2, Windows 2008, any Windows
-
4.01
-
9
-
Severity 2 - Major
-
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
- is caused by
-
JRASERVER-21159 PermGen memory not set, if JAVA_HOME is set incorrectly or missing
- Closed
- is duplicated by
-
JRASERVER-29129 Windows Installer does not set %JAVA_HOME% to the bundled JRE
- Closed
- relates to
-
JRASERVER-30699 JAVA_HOME System Variable Picked Up by JIRA Windows Installer
- Closed