Java をインストール
Please skip these instructions if you are intend to use or have used the Windows Installer or Linux Installer to install JIRA, since these executable files will install and configure their own JRE to run JIRA. If you are trying to use a different Java/JRE instead of the version bundled with JIRA, please use the How to Use System JRE Instead of Embedded JRE guide.
このページの内容
1. Java のインストール
JIRA requires Oracle's (formerly Sun's) Java Development Kit (JDK) or Java Runtime Environment (JRE) platform to run. Refer to Supported Platforms for details on the Java platform versions that JIRA supports.
Oracle's JDK/JRE can be downloaded from Oracle's website.
多くの場合、Linux ディストリビューションには GCJ と呼ばれる Java のオープンソース実装がインストールしてあります。この Java プラットフォームは使用しないで下さい。これは不完全なものであり、この上で JIRA を安定して実行させる事はできません。
You can test whether you have the correct Java platform by running java -version:
~$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
2. JAVA_HOME の設定
Once the JDK or JRE is installed, you will need to set the JAVA_HOME environment variable, whose value is the root directory of the JDK/JRE.
Some JDK/JRE installers set this automatically (check by typing 'echo %JAVA_HOME%' in a Windows command prompt, or 'echo $JAVA_HOME' in a Linux/UNIX console).
Linux ベースのコンピュータ
On many Linux-based computers, the JAVA_HOME environment variable is set in the /etc/environment file.
If JAVA_HOME is not defined in this file, you can set it using the following command at a shell prompt, when logged in with 'root' level permissions:
echo JAVA_HOME="path/to/JAVA_HOME" >> /etc/environment
If, however, JAVA_HOME is already defined in this file, open the /etc/environment file in a text editor and modify its value to the appropriate path/to/JAVA_HOME — that is:
JAVA_HOME="path/to/JAVA_HOME"
Windows ベースのコンピュータ
この環境変数が Windows ベースのコンピュータ上で設定されていない場合は、以下の手順でコントロールパネルにおいて設定します:
- Windows「アドバンス」システムプロパティのダイアログボックスを開きます:
- Windows XP ベースのオペレーティングシステムでは、デスクトップの マイコンピュータ アイコン上で右クリックして(またはスタート メニューを介して)、'プロパティ' を選択、'アドバンス' タブをクリックします。
- Windows 7 ベースのオペレーティングシステムでは、デスクトップのコンピュータ アイコン上で右クリックして (またはスタート メニューを介して)、'プロパティ'を選択、'アドバンスシステム設定'をクリック、'プロパティ'を選択して 'アドバンス' タブをクリックします。
- Click the Environment Variables button.
- 新規 ボタンのどれかをクリックします (お使いのユーザアカウント、また可能な場合はシステム全土に向けて新しい環境変数を定義するため)。
- Type
JAVA_HOMEas the variable name and the directory where you installed Java.
The default path for the bundled JRE with JIRA is
C:\Program Files\Atlassian\JIRA\jre. If using a 32-bit install in 64-bit system, this would beC:\Program Files (x86)\Atlassian\JIRA\jre. - After clicking the required 'OK' buttons to save your changes, your
JAVA_HOMEenvironment variable should be available in a new command prompt window. If not or if necessary, restart your computer.
3. Java の動作を確認
Once the steps above have been done, it should be possible to open a Windows command prompt and type %JAVA_HOME%\bin\java -version (or "%JAVA_HOME%"\bin\java -version if your %JAVA_HOME% value contains spaces) and see output similar to this:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
If you subsequently start JIRA and you receive an error like Windows cannot find '-Xms128m', then you may not have correctly set
JAVA_HOME. Please verify step 2 of the procedure above.
