(最終更新日時:2009-02-21 08:24:13)
サーバーサイドのJavaソリューションを開発するため、Linux(CentOS)に Java SE JDK をインストールします。
ダウンロード
| ・ | JDK 6 Update 6 | : | jdk-6u6-linux-i586.bin |
インストール
/optディレクトリでダウンロードしたファイルを実行し、インストールを行います。
# cd /opt
# chmod +x ダウンロード先/jdk-6u6-linux-i586.bin
# ダウンロード先/jdk-6u6-linux-i586.bin
:
(ライセンス表示)
:
Do you agree to the above license terms? [yes or no]
yes
:
(インストールの実行)
:
Press Enter to continue.....
[Enter]
Done.
環境設定
環境変数を設定します。
# cd /opt
# ln -s jdk1.6.0_06 jdk 環境変数に設定するパスは /usr/local/jdk にします
# vi /etc/profile
:
export JAVA_HOME=/opt/jdk
export PATH=$PATH:$JAVA_HOME/bin
# source /etc/profile 設定を反映させます
Copyright © 2004-2010 System House ACT. All Rights Reserved.