#002 자바 설치
1. 자바 제거
rpm -qa | grep jdk
yum remove java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64
2. 자바 업데이트
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jdk1.7.0_79/bin/java" 1;
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/jdk1.7.0_79/bin/javac" 1;
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/jdk1.7.0_79/bin/javaws" 1;
sudo update-alternatives --set java /usr/local/jdk1.7.0_79/bin/java;
sudo update-alternatives --set javac /usr/local/jdk1.7.0_79/bin/javac;
sudo update-alternatives --set javaws /usr/local/jdk1.7.0_79/bin/javaws;
3. 자바 Path 설정
vi /etc/profile
export JAVA_HOME=/usr/local/jdk1.7.0_79
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH="."
4. 자바가 정상적으로 설치 되었는지 확인
...