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...
https://www.czetsuyatech.com/2012/06/ubuntu-install-jdk1-6.html
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:
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.bin2.) Extract the bin file:
./jdk-6u32-linux-x64.bin3.) 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 15.) Choose default java:
sudo update-alternatives --config javac sudo update-alternatives --config java sudo update-alternatives --config javaws java version test: java -version6.) Verify the symlinks all point to the new java location:
ls -la /etc/alternatives/java*
Post a Comment