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
sudo
mv
jdk1.6.0_32
/usr/lib/jvm/
- Install the new Java source in system:123
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
- Choose default Java:123
sudo
update-alternatives --config javac
sudo
update-alternatives --config java
sudo
update-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
*
---------------------------------------------------------------------------
댓글 없음:
댓글 쓰기