All about Atlassian JIRA 2.2
THE problem: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program THE investigation: This occurs when you try to run any bat\sh from the jira base dir. version.bat THE solution: from here For my situation, I`ve just add C:\Progra~1\Atlassian\JIRA\jre Right-click the My Computer icon on your desktop and select Properties. Click the Advanced tab. Click the Environment Variables button. Under System Variables, click New. Enter the variable name as JAVA_HOME. Enter the variable value as the installation path for the Java Development Kit. If your Java installation directory has a space in its path name, you should use the shortened path name (e.g.C:\Progra~1\Java\jre6) in the environment variable instead.Short Read more…