Ubuntu: Tips and tricks

Installing Java on Firefox for Ubuntu

I knew I had Java on my machine, yet Firefox was not letting me access any pages with applets. Generally this wouldn’t be a problem unless I was browsing in 1996, but I did come across a site that used Java.

Every site I ran across said to do this:

cd /usr/lib/firefox/plugins
sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

But it wasn’t working.

Eventually it twigged that I was running Firefox 3.0.5 which lives in its own special directory.

cd /usr/lib/firefox-3.0.5/plugins
sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

Voila! Restart Firefox and Java works. Note that Firefox may live in different places in /usr/lib, so check firefox, firefox-{version}, and mozilla directories if you’re having trouble.

Determine if your Ubuntu image is 32-bit or 64-bit

Per this link, try the following:

Linux users should type the uname command. Depending on the platform, you may see

[cph@gaylord ~]$ uname -a
Linux gaylord.stata.com 2.6.11-1.27_FC3 #1 Tue May 17 20:24:57 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

[cph@caddo ~]$ uname -a
Linux caddo.stata.com 2.6.9-5.0.5.EL #1 SMP Fri Apr 8 14:20:58 EDT 2005 ia64 ia64 ia64 GNU/Linux

[cph@tango ~]$ uname -a
Linux tango.stata.com 2.6.10-1.771_FC2smp #1 SMP Mon Mar 28 01:10:51 EST 2005 i686 i686 i386 GNU/Linux

In the above listing, ‘gaylord’ (x86_64 GNU/Linux) and ‘caddo’ (ia64 GNU/Linux) are 64-bit compliant. ‘tango’ (i386 GNU/Linux) is only a 32-bit platform.

It's only fair to share...
Share on Facebook
Tweet about this on Twitter
Share on LinkedIn

Leave a Reply