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/
-------------------------------------------------------------------------------
- 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.
- Make the bin file executable:1
chmod+x jdk-6u32-linux-x64.bin - Extract the bin file:1
./jdk-6u32-linux-x64.bin - Move extracted folder to this location:1
sudomvjdk1.6.0_32/usr/lib/jvm/ - Install the new Java source in system:123
sudoupdate-alternatives --install/usr/bin/javacjavac/usr/lib/jvm/jdk1.6.0_32/bin/javac1sudoupdate-alternatives --install/usr/bin/javajava/usr/lib/jvm/jdk1.6.0_32/bin/java1sudoupdate-alternatives --install/usr/bin/javawsjavaws/usr/lib/jvm/jdk1.6.0_32/bin/javaws1 - Choose default Java:123
sudoupdate-alternatives --config javacsudoupdate-alternatives --config javasudoupdate-alternatives --config javaws - Check the Java version:1
java -version - Verify the symlinks all point to the new Java location:1
ls-la/etc/alternatives/java*
---------------------------------------------------------------------------
댓글 없음:
댓글 쓰기