[{TableOfContents}]

!!! JDK 1.6 설치 방법
*sun에서 jdk-6u3-linux-i586.bin 다운로드
*압축 해제, /usr/local/ 설치
{{{
sh jdk-6u3-linux-i586.bin
mv jdk1.6.0_03 /usr/local/
ln -s /usr/local/jdk1.6.0_03 /usr/local/java
}}}

*Path 설정
{{{
vi /etc/profile
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
JAVA_HOME=/usr/local/java
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.
export JAVA_HOME PATH CLASSPATH
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}








!!! JDK 1.5 설치 방법
*sun JDK 다운로드
*압축 해제, /usr/local/ 설치
{{{
sh jdk-1_5_0_08-linux-i586.bin
mv jdk1.5.0_08 /usr/local/
ln -s /usr/local/jdk1.5.0_08 /usr/local/java
}}}

*path 설정
{{{
vi /etc/profile
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
JAVA_HOME=/usr/local/java
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.
export JAVA_HOME PATH CLASSPATH
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}






!!!JDK 1.4 설치
*기존 jdk 삭제
{{{
mv /usr/bin/java /usr/bin/java_old
}}}

*압축 해제, /usr/local/ 설치
{{{
sh j2sdk-1_4_2_04-linux-i586.bin

tail: cannot open 에러가 날때
redhat 9의 tail을 가져와 사용 하도록 변경 함
tar -xvf tail.tar
mv /usr/bin/tail /usr/bin/tail_old
mv tail /usr/bin

mv j2sdk1.4.2_04 /usr/local/
ln -s /usr/local/j2sdk1.4.2_04 /usr/local/java
}}}

*Path 설정
{{{
vi /etc/profile
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
JAVA_HOME=/usr/local/java
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.
export JAVA_HOME PATH CLASSPATH
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}}}