This tutorial was written specifically for Java 1.6.0_12, but should work fine on future revisions.
Installing Java for 64-bit
Begin by downloading Java from Sun. Download Here (Linux x64 self-extracting JRE file)
or paste this command into the terminal:
Code:
wget -c 'http://www.java.net/download/jdk6/6u12/promoted/b02/binaries/jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin'
Next, we'll create an install directory in /opt (as this is probably the best place for development applications).
Code:
cd /opt
sudo mkdir java
cd java
Let's copy the installer file to the java directory.
Code:
sudo cp ~/jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin /opt/java/
Finally, let's execute the installer
Code:
sudo bash jre-6u12-ea-bin-b02-linux-amd64-08_dec_2008.bin
For good measure, let's register this as the default Java provider.
Code:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.6.0_12/bin/java" 1
sudo update-alternatives --set java /opt/java/jre1.6.0_12/bin/java
Installing Firefox plugin
First, lets remove the gcj web plugin:
Code:
sudo apt-get remove icedtea-gcjwebplugin
Remove the Cacao-plugin as described by Jozza the Wick:
Code:
sudo apt-get remove cacao-oj6-plugin
If it comes up with "not found" or the like, ignore it and continue.
Since we have it all setup, all we need to do is install the Firefox plugin. This can be done in one simple command (change according to version).
Code:
mkdir ~/.mozilla/plugins
ln -s /opt/java/jre1.6.0_12/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
deepclutch reported that this
Code:
sudo ln -s /opt/java/jre1.6.0_12/lib/amd64/libnpjp2.so /usr/lib/firefox-3.0.5/plugins/
worked instead. If this works for you, and the thanks system comes back up, all credit goes to him/her.
You can test the plugin by restarting your browser and going to http://www.javatester.org/version.html and checking for the pink box and line of text.
For Epiphany
Code:
ln -s /opt/java/jre1.6.0_12/lib/amd64/libnpjp2.so /usr/lib/epiphany-webkit/2.24/plugins/
by deepclutch
Bookmarks