2013년 11월 14일 목요일

[Android] Installing Sun JDK6 - Ubuntu 12.04 64bit

How to install Sun JDK 6

Android 개발환경을 위한 JDK6 설치했던 방법을 정리합니다.- OS : 64bit Ubuntu 12.04 LTS


Installing Sun JDK 6 Update on Ubuntu 12.04
  1. Download the jdk-6u32-linux-i586.bin from the Sun Java Download Centre. If you are on 64-bit Ubuntu, you should grab jdk-6u32-linux-x64.bin.
  2. Make the bin file executable:
    1chmod +x jdk-6u32-linux-x64.bin
  3. Extract the bin file:
    1./jdk-6u32-linux-x64.bin
  4. Move extracted folder to this location:
    1sudo mv jdk1.6.0_32 /usr/lib/jvm/
  5. Install the new Java source in system:
    1sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1
    2sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1
    3sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1
  6. Choose default Java:
    1sudo update-alternatives --config javac
    2sudo update-alternatives --config java
    3sudo update-alternatives --config javaws
  7. Check the Java version:
    1java -version
  8. Verify the symlinks all point to the new Java location:
    1ls -la /etc/alternatives/java*

댓글 없음:

댓글 쓰기