Ubuntu and Java update

Previously I documented how to get Java installed and running under Ubuntu Linux. That seemed to work OK for most Java applications, but the Mozilla plugins didn’t work. Apparently it had something to do with the gcc version that the packages were compiled with.

Luckily there is an alternate repository with java packages that do work with Mozilla. Add this into your /etc/apt/sources.list as per usual:

deb http://jrfonseca.dyndns.org/debian ./

And then its apt-get install j2re1.4 to install

7 thoughts on “Ubuntu and Java update”

  1. Okay, how do I make the plugin work with Firefox? I did the apt-get install, but I still don’t have Java available in the browser…

  2. Firefox is still saying it needs the plugin. I have made sure that
    Edit->preferences->web feature->Java enable, is checked but nothing.

    Other errors seen in the screen include:
    (firefox-bin:10479): Gdk-WARNING **: locale not supported by Xlib

    (firefox-bin:10479): Gdk-WARNING **: cannot set locale modifiers

    (firefox-bin:10479): Gdk-WARNING **: locale not supported by Xlib

    (firefox-bin:10479): Gdk-WARNING **: cannot set locale modifiers
    *** loading the extensions datasource
    *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping.

    (firefox-bin:10479): Gdk-WARNING **: locale not supported by Xlib

    (firefox-bin:10479): Gdk-WARNING **: cannot set locale modifiers
    *** loading the extensions datasource
    *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping.
    INTERNAL ERROR on Browser End: Listen on server socket failed
    System error?:: Invalid argument

  3. Ok, I added the link as root as you mentioned below but still didnt work:

    # cd /usr/lib/mozilla-firefox/plugins
    # ln -s /etc/alternatives/libjavaplugin_oji.so

    Java applets worked AFTER I reinstalled Ubuntu Hoary. Possibility of problems are as follows:
    I tried to install j2sdk1.5.0 from sun’s web site which was in RPM, I converted it with “alien”
    I also tried to setup the libjavaplugin_oji.so
    plugin as user specfic in the ~/.mozilla/plugins

    It works, and I didnt even have to close firefox while doing the install. thanks

  4. About:buildconfig to see the compiler used ro build the browser. The 150 java seems to work even on woody with the proper plugin 2.9? vs 3.?? and This sounds small but did you use the period at the end of the stanza like so
    ln -s /etc/alternatives/libjavaplugin_oji.so . this period is not punctuation

  5. you see, I re-installed firefox (with the bin installer provided at http://www.mozilla.org) and installed jre1.5.0_02 (with the bin installer from java.sun.com)

    i linked the file but firefox didn’t appear to have recognized it… maybe i’m missing something as writing stuff into some config file?

  6. This was a solid update. Good to know that the java plugin, modzilla, and ubuntu all work well together now. Hopefully, there will be fewer problems in the future.

Comments are closed.