2013년 1월 5일 토요일

Howto Install sun-java6-jdk on Ubuntu 10.04 64 bit OS


Due to license issue of JDK, it was removed from official APT server.

[Howto install JDK6 from java commuity server]

$ sudo add-apt-repository ppa:sun-java-community-team/sun-java6
$ sudo apt-get update $ sudo apt-get install sun-java6-jdk $ sudo update-java-alternatives -s java-6-sun


>>> http://java.dzone.com/articles/sun-java-6-ubuntu-1004-1010

[Howto install JDK6 manually]

>>> http://codingforme.wordpress.com/2012/05/14/installing-oracle-java-jdk-6-or-7-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:
    1
    chmod +x jdk-6u32-linux-x64.bin
  3. Extract the bin file:
    1
    ./jdk-6u32-linux-x64.bin
  4. Move extracted folder to this location:
    1
    sudo mv jdk1.6.0_32 /usr/lib/jvm/
  5. Install the new Java source in system:
    1
    2
    3
    sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1
    sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1
    sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1
  6. Choose default Java:
    1
    2
    3
    sudo update-alternatives --config javac
    sudo update-alternatives --config java
    sudo update-alternatives --config javaws
  7. Check the Java version:
    1
    java -version
  8. Verify the symlinks all point to the new Java location:
    1
    ls -la /etc/alternatives/java*

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



댓글 없음:

댓글 쓰기