For me, the easiest way is to manually install.
To get started, press Ctrl – Alt T. Remove all other installations of OpenJDK from your system.
sudo apt-get purge openjdk*
After that, go and download Java JRE package from
http://www.oracle.com/technetwork/ja...d-1591157.html
When prompted, save the download. Please select the 32 or 64 bit .tar.gz version file from the list.
then extract the java packages you downloaded.
tar -xvf ~/Downloads/jre-7u4-linux-i586.tar.gz
Next, create your java 7 folder by running the commands below.
sudo mkdir -p /usr/lib/jvm/jre1.7.0
Then move all the extracted files and folders into the java 7 folder.
sudo mv jre1.7.0_04/* /usr/lib/jvm/jre1.7.0/
Next, run the commands below to install / update java 7
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/jre1.7.0_04/bin/java 0
Next, create a plugin folder in your home directory by running the commands below.
mkdir ~/.mozilla/plugins
Finally, link the java plugin to your profile.
ln -s /usr/lib/jvm/jre1.7.0/jre1.7.0_04/lib/i386/libnpjp2.so ~/.mozilla/plugins/
That’s it.
If your system profile is AMD64, then link java to your profile by running the commands below.
ln -s /usr/lib/jvm/jre1.7.0/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
Removal/Updates
Removal is easy. Manually delete the ln file in .mozilla plugins and also the usr/lib/jvm/jre1.7.0/*
Repeat the steps with the new file (executable)
Note: Upon executing the first command, you will receive an error. Execute it again to proceed with the new install.
Bookmarks