このページでは、Java Development Kit (JDK) のインストールを説明しています。これは、ZIP 形式ファイル、または、アーカイブ ファイルからの Confluence インストール時にのみ必要となる手動による手順です。
If you are using the automated installer, the required Java files are bundled and will be automatically put in place, hence you will not need to follow the instructions on this page.
Please refer to our Supported Platforms topic for details of the Java versions that are supported for Confluence. Please note: a JRE (Java Runtime Environment) is not enough to run Confluence, the JDK is required.
JDK のインストール
A JDK needs to be installed on the same server machine that will have Confluence installed.
Windows で JDK をインストールする
If you are not sure whether you have a JDK installed correctly, please confirm by doing the following:
Run a complete directory search (using the 'All File and Folders' option if available) on your drives for the occurrence of 'jdk' in the filename.
If your results retrieve a folder with the name 'jdk' immediately followed by a series of version numbers (for example, jdk1.6.0_17), then the JDK has been installed. You should double-check the contents of this folder to ensure that the installation files are intact. If you are unsure about this, proceed to step 2 to re-install the JDK. Otherwise, proceed to step 3 to check that your JAVA_HOME environment variable has been set correctly.
If you do not retrieve a result like this, then it is highly likely that the JDK has not been installed.
Check that the JAVA_HOMEenvironment variable has been set correctly.
Open the Start menu, choose Run, type cmd in the Run dialog box and click OK.
In the command prompt window, type echo %JAVA_HOME% and then press Enter.
結果を確認します:
If a directory path is displayed that looks similar to one of the following examples, with the letters 'jdk' immediately preceding a series of version numbers, and this path matches the location where you installed the JDK in step 2, then your JDK has been successfully installed and your JAVA_HOME environment variable has been set correctly. Examples of typicalJAVA_HOMEenvironment variable values:
C:\Program Files\Java\jdk1.6.0_17
C:\Progra~1\Java\jdk1.6.0_17
C:\Java\jdk1.6.0_17
C:\jdk1.6.0_17
If nothing is displayed or you do not see 'jdk' immediately followed by a series of version numbers (like one of the examples above), then you need to set the JAVA_HOME environment variable. Please follow these instructions to set your JAVA_HOME environment variable to the directory you where you have just installed the JDK. By default, this directory is under C:\Program Files\Java.
Linux で JDK をインストールする
JDK が正しくインストールされているか分からない場合、次を実行して確認してください:
シェル コンソールを開く。
Type echo $JAVA_HOME in the shell console and then press Enter
結果を確認します:
If a line is displayed such as /opt/jdk1.6.0_12 or /usr/lib/jvm/java-6-sun, then your JDK is installed and properly configured.
If nothing is displayed, then you either need to install the JDK or set the $JAVA_HOME environment variable. You can set this environment variable in your user account's 'profile' file. Alternatively, you can set this after installing Confluence (in step 4 below) by defining this path in your Confluence installation's setenv.sh file, usually located in the Confluence bin directory.