HowTo: Enable Java for Firefox

A very special thanks goes out to “NobodySpecial” from the Ubuntu forums for this helpful tip on how to enable Java for firefox. You may see the original post here.

For Sun Java:
Download from IBM: http://www-128.ibm.com/developerwork…/download.html
You will have to register (free).
Choose 32-bit iSeries/pSeries, J2SE5.0. Download the TGZ version of the SDK.
The following instructions assume the latest version to download is “ibm-java2-sdk-5.0-4.0-linux-ppc.tgz” - modify the text below as needed.
In terminal:

Code:

$ sudo apt-get install libgtk1.2 libstdc++5 java-package
$ mv ibm-java2-sdk-5.0-4.0-linux-ppc.tgz ibm-java2-sdk-50-linux-ppc.tgz
$ make-jpkg ibm-java2-sdk-50-linux-ppc.tgz
$ sudo dpkg -i ibm-j2sdk1.5_1.5.0_powerpc.deb
$ java -version

 

The last command should give you a response: java version “1.5.0″
If not, type:

Code:

$ sudo update-alternatives --config java

To get working with firefox:

 

Code:

$ sudo ln -s /usr/lib/j2sdk1.5-ibm/jre/bin/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins

Restart firefox, go to test website: http://serios.net/content/applets/viewinfoawt.php

Enjoy Java!

14 Comments so far »

  1. Mark said

    am July 30 2007 @ 6:02 pm

    I attempted this but the system informed me that I needed to have multiverse installed. My original Linux install went fine and I was not informed that I missed anything. Can you help?

  2. Ciego said

    am July 31 2007 @ 3:26 am

    You will need to enable some repositories first.

    Check out this document …. it should guide you throught the process.

    https://help.ubuntu.com/community/Repositories?action=show&redirect=AddingRepositoriesHowto

    I would suggest posting in the forums if you have additional questions. They will be seen/answered more quickly and by more users.

    http://psubuntu.com/forum
    http://www.ubuntuforums.org

  3. neurontin pain said

    am October 24 2007 @ 2:19 am

    neurontin pain…

    news…

  4. clomid fertility drugs said

    am October 24 2007 @ 3:25 am

    clomid fertility drugs…

    news…

  5. jgm said

    am February 10 2008 @ 10:35 pm

    hey im a noob at this stuff i dont get what the codes are for and what terminal is?? can someone help thanks.

    The following instructions assume the latest version to download is “ibm-java2-sdk-5.0-4.0-linux-ppc.tgz” - modify the text below as needed.
    In terminal:

    Code:

    $ sudo apt-get install libgtk1.2 libstdc++5 java-package
    $ mv ibm-java2-sdk-5.0-4.0-linux-ppc.tgz ibm-java2-sdk-50-linux-ppc.tgz
    $ make-jpkg ibm-java2-sdk-50-linux-ppc.tgz
    $ sudo dpkg -i ibm-j2sdk1.5_1.5.0_powerpc.deb
    $ java -version

  6. drunkgoblin said

    am February 19 2008 @ 2:25 am

    this worked for me, change:

    Code:

    $ sudo ln -s /usr/lib/j2sdk1.5-ibm/jre/bin/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins

    to:

    Code:

    $ sudo ln -s /usr/lib/j2sdk1.5-ibm/jre/bin/libjavaplugin_oji.so /usr/lib/firefox/plugins

  7. igniteflow said

    am February 20 2008 @ 3:38 pm

    I’ve downloaded the .tgz file to the desktop on ubuntu 7.10 but when i get to the second line of the terminal instructions i get “No such file or directory”
    Where should I put the .tgz file for this to work?

  8. scott said

    am May 14 2008 @ 5:47 am

    i’m not sure if it’s 8.04 only, but i cannot get this working. 8.04 uses Firefox 3.0b5 compiled for ppc64. Does this not work with 32bit plugins? I’ll mess with it some more, but I couldn’t get the 64bit java to work at all, and the 32bit one works but not in firefox… The files exist, running “file java” says it a dynamic exe but then “ldd java” says it’s not. Might still be a directory issue, but I tried the plugins directory in the start-up script, but used symbolic links … ugh I dunno. :(

  9. Civo said

    am June 5 2008 @ 2:52 pm

    Hi everyone!

    I’m also having trouble installing Java in the Feity PS3 version.

    I’m having the same message as igniteflow:

    “No such file or directory”

    I’m on the desktop directory, the file is on the desktop, I made copy/paste of the name of the file to the Terminal and that message appeared.
    It seems as if no file is saved on the Desktop?!

    Can anyone help? With low Flash support and low java support, there a lot of websites that can’t be viewed correctly!!! And I don’t care about Utube, I’m talking about sites I need to insert data; for instance in my countries Finances site, I can’t even submit my forms on-line.

  10. mohammad said

    am July 30 2008 @ 11:37 pm

    i am having the same problem it says no suck files or directory…what can i do???

  11. mohammad said

    am July 30 2008 @ 11:54 pm

    PLEASE HELP US PLZ PLZ PLZNEED IT

  12. mohammad said

    am July 31 2008 @ 12:09 am

    wherre do i put the tgz file? i tried my home folder my desktop and documents but it doesnt work…can any one help me?

  13. Adrian said

    am August 12 2008 @ 5:00 pm

    Works fine for me.

    You have to change the directory within your terminal.
    If you downloaded it to your Desktop than open your terminal and
    change to the Desktop with
    “cd Desktop”. (Your terminal should start in your home).

    After that follow the instructions above. Of course you have to edit the Java-Version. The actual version is
    ibm-java2-sdk-5.0-8.0-linux-ppc.tgz. You have to take this version. Java 6 doesn’t work this way.

  14. PS398632 said

    am August 28 2008 @ 11:27 pm

    Please make a more Direct approach and step by step process
    Please also view the following information that can be extremely confusing..
    can you please explain in Detail if we need to install this file(s)?

    Java 5

    WARNING: The country in which you are presently located may have restrictions on the import, possession, and use, or re-export to another country, of encryption software. BEFORE downloading any encryption software, please check the country’s laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted.

    Downloads

    IBM 32-bit SDK for Linux on iSeries and pSeries architecture, Java 2 Technology Edition
    2008-07-10

    To download using http, click on ‘Download now’.

    You can also download the files using Download Director. Learn more.
    Download method

    * Download using Download Director
    * Download using http- selected tab,

    SDK

    rpm format
    ibm-java2-ppc-sdk-5.0-8.0.ppc.rpm

    Download now

    tgz format
    ibm-java2-sdk-5.0-8.0-linux-ppc.tgz

    Download now

    JRE

    rpm format
    ibm-java2-ppc-jre-5.0-8.0.ppc.rpm

    Download now

    tgz format
    ibm-java2-jre-5.0-8.0-linux-ppc.tgz

    Download now

    Java Communication API

    rpm format
    ibm-java2-ppc-javacomm-5.0-8.0.ppc.rpm

    Download now

    tgz format
    ibm-java2-javacomm-5.0-8.0-linux-ppc.tgz

    Download now

    JPackage

    tgz format
    pxp32dev-20080710-jpackage.tar.gz

    Download now

    Readme and User Guides

    Fixes List
    fixes.html

    Download now

    Readme First
    readmefirst.lnx.txt

    Download now

    SDK and JRE Guide
    sdkandruntimeguide.lnx.en.htm

    Download now

Comment RSS · TrackBack URI

Leave a comment

Name:

eMail:

Website:

Comment: