ALL ABOUT ME

Ubuntu :: java 1.7 설치 본문

Lab

Ubuntu :: java 1.7 설치

threeword 2013.10.17 03:21

$ sudo mkdir -p /usr/local/java

$ sudo -s mv /jdk1.7.0_45/ /usr/local/java


$ sudo vim /etc/environment


PATH="..............:/usr/bin/java/jdk1.7.0_45/bin"

JAVA_HOME=/usr/bin/java/jdk1.7.0_45


$ source /etc/environment


$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_05/bin/java" 1

$ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_05/bin/javac" 1

$ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_05/bin/javaws" 1


$ sudo update-alternatives --set java /usr/local/java/jdk1.7.0_05/bin/java

$ sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_05/bin/javac

$ sudo update-alternatives --set javaws /usr/local/java/jdk1.7.0_05/bin/javaws


$ java -version

'Lab' 카테고리의 다른 글

OS X :: Eclipse 아이콘 변경- Luna  (0) 2015.06.09
App :: 잠들지 않는 CoC (Wakeful CoC)  (37) 2015.01.19
Ubuntu :: java 1.7 설치  (0) 2013.10.17
Android :: Screen size & density 변경  (1) 2013.08.27
Android :: Eclipse에서 GitHub 연동  (0) 2013.08.26
Android :: Git & GitHub  (0) 2013.08.26
0 Comments
댓글쓰기 폼