This information is only relevant if you're installing Confluence on a Windows server.
After you've installed the Java Runtime Environment (JRE) in Windows, you must set the
JAVA_HOME environment variable to point to the JRE installation directory.
Stage 1. Locate the JRE Installation Directory
If you already know the installation path for the Java Runtime Environment, go to Stage 2 below. Otherwise, find the installation path by following these instructions:
- Open the directory
C:\Program Files\Javausing Explorer (if you didn't change the installation path for the Java Runtime Environment during installation)
- Locate the appropriate subdirectory, such as
Stage 2. Set the JAVA_HOME Variable
Once you have identified the JRE installation path:
- 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
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.
Note for Windows users on 64-bit systems
Progra~1 = 'Program Files'
Progra~2 = 'Program Files(x86)'
- Click OK
- Click Apply Changes
- Close any command window which was open before you made these changes, and open a new command window.
There's no way to reload environment variables from an active command prompt. If the changes don't take effect even after reopening the command window, restart Windows.
If you're running the Confluence EAR/WAR distribution, rather than the regular Confluence distribution, you may need to restart your application server.