Saturday, September 12, 2009

Enabling Java on Firefox on Ubuntu

Since I never remember how to do this, I figured I'd put it up here. This assumes you already have Java installed, and note this is for 32-bit. I'll be getting a shiny new 64-bit laptop very soon, and from what I understand things are a bit different on 64-bit.
  1. In Firefox, go to Edit -> Preferences -> Content and check "Enable Java"
  2. Quit Firefox
  3. In a terminal, cd to /path/to/firefox/plugins. On my machine and for my current version of Firefox, this is in /usr/lib/firefox-3.0.14/plugins If in doubt, locate plugins | grep firefox should narrow it down.
  4. Create a symlink to the Java plugin. Your path to Java may differ, but on my machine I did:

    ln -s /usr/share/java/jdk1.6.0_14/jre/plugin/i386/ns7/
  5. Restart Firefox
Apparently on 64-bit the i386 directory under jre/plugin doesn't exist, but there are some solutions. I'll have to verify when my 64-bit machine (complete with 8GB of RAM and a solid state drive!) arrives.

No comments: