no

How to Install Jdk 1.6 on Ubuntu

Currently Oracle prohibit the community from adding java to the linux repositories. So it needed to be manually download from oracle website...

Currently Oracle prohibit the community from adding java to the linux repositories. So it needed to be manually download from oracle website and installed.

Java can be downloaded from:
From: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/

Steps to install java:
1.) Make the bin file executable:
chmod +x jdk-6u32-linux-x64.bin
2.) Extract the bin file:
./jdk-6u32-linux-x64.bin
3.) Move extracted folder:
sudo mv jdk1.6.0_32 /usr/lib/jvm/
4.) Install new java source in system:
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
5.) Choose default java:
sudo update-alternatives --config javac
sudo update-alternatives --config java
sudo update-alternatives --config javaws
java version test:
java -version
6.) Verify the symlinks all point to the new java location:
ls -la /etc/alternatives/java*

Related

ubuntu 7644021288979243834

Post a Comment Default Comments

item