This page last changed on May 24, 2011 by mryall.
This information is only relevant if you are installing Confluence on a Windows server.
After you have installed the Java Development Kit (JDK) in Windows, you must set the JAVA_HOME environment variable to the JDK installation directory.
Stage 1. Locate the JDK Installation Directory
If you already know the installation path for the Java Development Kit, go to Stage 2 below. Otherwise, find the installation path by following these instructions:
- Unless you changed the installation path for the Java Development Kit during installation, it will be in a directory under
C:\Program Files\Java . Using Explorer, open the directory C:\Program Files\Java .
- Inside that path will be one or more subdirectories such as
jdk1.6.0_17 . If you have just installed the Java Development Kit, it will be installed to the newest directory, which you can find by sorting by date. For example, it may be installed in C:\Program Files\Java\jdk1.6.0_17 . This is the installation path.
Stage 2. Set the JAVA_HOME Variable
Once you have identified the JDK 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
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\jdk1.6.0_24 ) in the environment variable instead.
- Click OK.
- Click Apply Changes.
- Restart Windows. (This is not always necessary, but it often prevents problems.)
- If you are running Confluence as a EAR/WAR rather than the Standalone, you may need to restart your application server.
This screenshot shows setting the JAVA_HOME variable to an installation path of c:\j2sdk1.4.2 :

If you came here from Installing Confluence Standalone Using the Windows Evaluation Installer, go back and begin Stage 3.
Installing Confluence Standalone Using the Windows Evaluation Installer
Starting Tomcat as a Windows Service
Installing Confluence in Linux
|