Installing java and browser plugin

I’ve spend some time today trying to figure out how to enable the chromium browser to run the latest version of sun..erh, oracle java. Apparently chromium reads the .mozilla/plugins folder… This i how I got things to work

Installing java

Download a java 7 without an installer from java.com. Untar this in /usr/local

# cd /usr/local
# sudo tar xzf ~/Downloads/jre-7u13-linux-x64.tar.gz

And update alternatives:

# sudo update-alternatives --install /usr/bin/java "java" /usr/local/jre1.7.0_13/bin/java 1062
# update-alternatives --config java

Install the Firefox Plugin

# mkdir -vp ~/.mozilla/plugins

32-Bit version:

# ln -s /usr/local/jre1.7.0_13/lib/i386/libnpjp2.so ~/.mozilla/plugins/

64-Bit version:

# n -s /usr/local/jre1.7.0_13/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Please leave a comment