1. 인터넷 브라우저를 열어, SDN Home 의 Download Center 에서 Download Java SE Development Kit 6u21 for Linux, Multi-language 를 실행한다.
2. jdk-6u21-linux-i586.bin 이 저장되면,
3. 터미널 창을 열어 다음을 실행한다.
4. 압축파일이 저장된 Directory 로 이동한다.
snjee@snjee-kubuntu:~$ cd setupapps
snjee@snjee-kubuntu:~$ sudo mv jdk-6u21-linux-i586.bin /usr/local/
snjee@snjee-kubuntu:~$ sudo chmod a+x /usr/local/jdk-6u21-linux-i586.bin
snjee@snjee-kubuntu:~$ sudo ./jdk-6u21-linux-i586.bin
[아래는 압축이 풀리고 마지막에 표시되는 Comment 부분이다.]
Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation
Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.
For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html
Press Enter to continue.....
Done.
여기까지 압축이 풀리면 /usr/local/jdk1.6.0_21 Directory 가 생긴다.
다음은 설정 과정이다.
snjee@snjee-kubuntu:/usr/local$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jdk1.6.0_21/jre/bin/java" 1
snjee@snjee-kubuntu:/usr/local$ sudo update-alternatives --config java
java을(를) 제공하는 대체항목이 7개 있습니다.
선택번호 대체항목
-----------------------------------------------
1 /usr/lib/jvm/java-6-sun/jre/bin/java
2 /usr/bin/gij-4.2
3 /usr/bin/gij-4.3
4 /usr/lib/jvm/java-gcj/jre/bin/java
*+ 5 /usr/lib/jvm/java-6-openjdk/jre/bin/java
6 /etc/alternatives/kaffe-system/bin/java
7 /usr/local/jdk1.6.0_21/jre/bin/java
기본 사항[*]을 사용하려면 엔터, 다른 것을 사용하려면 번호를 입력하십시오: 7
'/usr/local/jdk1.6.0_21/jre/bin/java' 사용해서 java 제공하는 중.
snjee@snjee-kubuntu:/usr/local$ cd ~
snjee@snjee-kubuntu:~$ java --version
Unrecognized option: --version
Could not create the Java virtual machine.
snjee@snjee-kubuntu:~$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)
snjee@snjee-kubuntu:~$
여기까지 JDK 1.6.0 을 설치하는 과정을 정리하였다.
2. jdk-6u21-linux-i586.bin 이 저장되면,
3. 터미널 창을 열어 다음을 실행한다.
4. 압축파일이 저장된 Directory 로 이동한다.
snjee@snjee-kubuntu:~$ cd setupapps
snjee@snjee-kubuntu:~$ sudo mv jdk-6u21-linux-i586.bin /usr/local/
snjee@snjee-kubuntu:~$ sudo chmod a+x /usr/local/jdk-6u21-linux-i586.bin
snjee@snjee-kubuntu:~$ sudo ./jdk-6u21-linux-i586.bin
[아래는 압축이 풀리고 마지막에 표시되는 Comment 부분이다.]
Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation
Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.
For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html
Press Enter to continue.....
Done.
여기까지 압축이 풀리면 /usr/local/jdk1.6.0_21 Directory 가 생긴다.
다음은 설정 과정이다.
snjee@snjee-kubuntu:/usr/local$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jdk1.6.0_21/jre/bin/java" 1
snjee@snjee-kubuntu:/usr/local$ sudo update-alternatives --config java
java을(를) 제공하는 대체항목이 7개 있습니다.
선택번호 대체항목
-----------------------------------------------
1 /usr/lib/jvm/java-6-sun/jre/bin/java
2 /usr/bin/gij-4.2
3 /usr/bin/gij-4.3
4 /usr/lib/jvm/java-gcj/jre/bin/java
*+ 5 /usr/lib/jvm/java-6-openjdk/jre/bin/java
6 /etc/alternatives/kaffe-system/bin/java
7 /usr/local/jdk1.6.0_21/jre/bin/java
기본 사항[*]을 사용하려면 엔터, 다른 것을 사용하려면 번호를 입력하십시오: 7
'/usr/local/jdk1.6.0_21/jre/bin/java' 사용해서 java 제공하는 중.
snjee@snjee-kubuntu:/usr/local$ cd ~
snjee@snjee-kubuntu:~$ java --version
Unrecognized option: --version
Could not create the Java virtual machine.
snjee@snjee-kubuntu:~$ java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Client VM (build 17.0-b16, mixed mode, sharing)
snjee@snjee-kubuntu:~$
여기까지 JDK 1.6.0 을 설치하는 과정을 정리하였다.
댓글
Is this possible?