꿈꾸는 시스템 디자이너

Ubuntu(12.04 LTE)에 JDK(1.6) 설치하는 방법 본문

Development/Linux & Ununtu

Ubuntu(12.04 LTE)에 JDK(1.6) 설치하는 방법

독행소년 2013. 3. 21. 14:52

1. Java SE 다운로드

http://www.oracle.com/technetwork/java/javase/downloads/index.html



2. 설치



$ chmod +x jdk-6u34-linux-x64.bin

$ sudo ./jdk-6u34-linux-x64.bin

$ sudo mv jdk1.6.0_34 /usr/lib/jvm/

 

$sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_34/bin/java 1

$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_34/bin/javac 1

$ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_34/bin/javaws 1


$ sudo update-alternatives --config java

$ sudo update-alternatives --config javac

$ sudo update-alternatives --config javaws



Comments