Java tin hold upward 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 novel coffee root inward system:
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac i sudo update-alternatives --install /usr/bin/java coffee /usr/lib/jvm/jdk1.6.0_32/bin/java i sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws i5.) Choose default java:
sudo update-alternatives --config javac sudo update-alternatives --config coffee sudo update-alternatives --config javaws coffee version test: coffee -version6.) Verify the symlinks all signal to the novel coffee location:
ls -la /etc/alternatives/java*
0 komentar:
Please comment if there are any that need to be asked.