Ubuntu 8.04 Firefox 3.0 Java Error when using Gallery 2 Upload Applet

I got this error "error:java.lang.ExceptionInInitializerError"…

Login

Blog History

I got this error "error:java.lang.ExceptionInInitializerError" on the status bar of Firefox 3.0 while attempting to load Gallery 2's Java Upload Applet.

Looks as though the IcedTea Java plugin is not compatible with the Upload Applet

The fix:
sudo apt-get remove gcjwebplugin

Install and enable a java.sun.com Java Runtime Environment. (By enable I mean get firefox to see it). Downloading and installing a JRE from Sun I will leave as an excercise for the reader.

I'm not sure if the JRE's from Sun now install their plugin to Firefox automatically. Check by restarting Firefox and clicking Tools ==> Add ons ==> Plug-ins and look for "Java(TM) Plug-in 1.x.blah" if you see that and it's greyed click the enable button and restart Firefox and you're done.

But to do it manually:

Link the Java plugin to your Firefox plugins directory
sudo ln -sf /usr/lib/jvm/java-6-sun-1.6.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-3.0/plugins/

Which should give you a link between your JRE libjavaplugin_oji.so file and your firefox plugins folder like:

ls -al /usr/lib/firefox-3.0/plugins/
lrwxrwxrwx 1 root root 73 2008-06-27 09:45 libjavaplugin_oji.so -> /usr/lib/jvm/java-6-sun-1.6.0.06/jre/plugin/i386/ns7/libjavaplugin_oji.so

Again restart Firefox 3.0 and you are done

You should now be able to use the Gallery 2 Upload Applet.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.