61.Linux2009. 8. 13. 18:04
반응형

mv jdk-1_5_0_08-linux-i586.bin /usr/local

cd /usr/local

chmod 755 jdk-1_5_0_08-linux-i586.bin

./jdk-1_5_0_08-linux-i586.bin

알수없는 내용들이 많이 나옴.

"yes" 입력후 엔터

자동 설치

ln -s jdk1.5.0_18 java

vi /etc/profile

----------추가----------

#Java Setting
export JAVA_HOME=/usr/local/java
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar

-------------------------

source /etc/profile

env

-----------내용확인-----------

JAVA_HOME=/usr/local/java

CLASSPATH=/usr/local/java/jre/lib/ext:/usr/local/java/lib/tools.jar

------------------------------

java -version

java

javac

끝-

Posted by 1010