Java does not work on your Linux Firefox browser ?

Are you having trouble getting java to work with your firefox browser on Linux.

Unlike windows, where you install Java and lo it's setup with all the browsers seamlessly, on linux it appears to be different. It still requires some manual intervention to get this working.

We were trying to test an file upload applet for one of the products under test. The tests ran fine on Windows. But on Linux, despite reinstalling java and firefox, we couldn't get the applet to run.

After looking around on the net and following instructions from Mozilla and Sun (see here), it was still not working.

After more digging, found the solution on the OpenSuse Forum.

To get it working follow these steps:

  1. Install your firefox browser (ignore this if done already, note down the location of the install)
  2. Install Java (ignore this if done already, note down the location of the install)
  3. Test if Java is plugged into firefox browser. Run these checks as described in Using the Java plugin with Firefox.
  4. If it continues to fail, try this:

For Ubuntu, if you have logged in as user name AA, do this:

sudo ln -s <JAVA_HOME>/plugin/i386/ns7/libjavaplugin_oji.so /home/<user name>/.mozilla/plugins/libjavaplugin_oji.so

Eg.

sudo ln -s /usr/java/jre1.6.0_02/plugin/i386/ns7/libjavaplugin_oji.so /home/AA/.mozilla/plugins/libjavaplugin_oji.so

For any other Linux OS, follow the same as above if you logged in as a particular user.

If you want to use the browser as root user, the path may change.

Eg.

sudo ln -s /usr/java/jre1.6.0_02/plugin/i386/ns7/libjavaplugin_oji.so /root/.mozilla/firefox/plugins/libjavaplugin_oji.so

You may have to create the plugins directory if it does not exist.

It worked great for us. Hope this helps you too.

 


User login

Who's new

  • amitbhagwat
  • TenLekerand
  • ClainaNaigh
  • RaviGunasekaran
  • gopasruhafoni

Who's online

There are currently 0 users and 2 guests online.