Jump to content


Photo
- - - - -

how to install the java plugin in firefox


  • Please log in to reply
15 replies to this topic

#1 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 29 November 2004 - 09:58 AM

PLEASE NOTE, the java download filename and VERSION changes often so the below filename may NOT be what you have just downloaded. In other words, please use YOUR filename in the commands below and NOT the one that I reference to otherwise  you will not get this working.

In addition the below TIP is for fedora core 1,2,3. For Fedora Core release 4  do this http://www.linux-noob.com/forums/index.php?showtopic=1707 and scroll down to "Now lets install Java", thats the bit you need.


first of all, why am i doing this small howto, well the 'install missing plugin' for java in firefox didn't work for me, it listed the 'manual installation' icon instead.

so this is what i did in Fedora Core Release 3 using Firefox 1

go to suns site and get the latest java rpm

http://javashoplm.sun.com/ECom/docs/Welcom...sactionId=noreg

download the linux rpm

once done, install it by doing this (login as root by typing su - in a console, thats a 'su' followed by a space, followed by a minus.)

now, cd (change directory) to the directory that you downloaded the rpm to, more than likely it's /home/your_user_name

so if you are anyweb do this,

cd /home/anyweb

then do this... (PLEASE NOTE, the java download filename changes often so the below filename may NOT be what you have just downloaded, to check what you did download try doing this)

ls |grep jre

once you have the 'filename' (it could be j2re-1_4_2_06-linux-i586-rpm.bin for example...) then apply THAT to the instructions below,


[root@localhost anyweb]# chmod +x jre-1_5_0-linux-i586-rpm.bin
[root@localhost anyweb]# ./jre-1_5_0-linux-i586-rpm.bin
Do you agree to the above license terms? [yes or no]
y
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: jre-1_5_0-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:jre                    ########################################### [100%]

Done.

ok now it's installed, lets link firefox plugins directory.

in your home directory (eg: /home/anyweb) there should be a hidden directory called mozilla.

To find the hidden directories, remember that they are all starting with a . (FULLSTOP/PERIOD) so cd /home/anyweb/.mozilla/plugins will get you to the directory.

so to link this correctly you need to identify your mozilla (yes mozilla !) plugins directory

here is mine

/home/anyweb/.mozilla/plugins

NOTE: if you do NOT have a /home/username/.mozilla/plugins directory that is because you have not installed any plugins YET in FireFox. If so, you will need to create the directory as the 'normal user' (you) and not as root. Open up another terminal (console) and type
cd .mozilla
mkdir plugins

cd to that directory (change to that dir) and ln -s (symbolic link) to the java plugin.

REMINDER: the java download filename and VERSION changes often so the below filename may NOT be what you have just downloaded. In other words, please use YOUR filename in the commands below and NOT the one that I reference to otherwise  you will not get this working.


here's the code now that you have checked what version you downloaded :)


cd /home/anyweb/.mozilla/plugins
[anyweb@localhost plugins]$ ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so
[anyweb@localhost plugins]$ ls
flashplayer.xpt  libflashplayer.so  libjavaplugin_oji.so

ok thats it

once done, close firefox and restart it.

in the address bar type this

about:plugins

and press enter, you should hopefully now see the following:-

Installed plug-ins
Find more information about browser plug-ins at Netscape.com.
Help for installing plug-ins is available from plugindoc.mozdev.org.
Java™ Plug-in 1.5.0-b64

    File name: libjavaplugin_oji.so
    Java™ Plug-in 1.5.0

MIME Type  Description  Suffixes  Enabled
application/x-java-vm  Java Yes
application/x-java-applet  Java Yes
application/x-java-applet;version=1.1  Java Yes
application/x-java-applet;version=1.1.1  Java Yes
application/x-java-applet;version=1.1.2  Java Yes
application/x-java-applet;version=1.1.3  Java Yes
application/x-java-applet;version=1.2  Java Yes
application/x-java-applet;version=1.2.1  Java Yes
application/x-java-applet;version=1.2.2  Java Yes
application/x-java-applet;version=1.3  Java Yes
application/x-java-applet;version=1.3.1  Java Yes
application/x-java-applet;version=1.4  Java Yes
application/x-java-applet;version=1.4.1  Java Yes
application/x-java-applet;version=1.4.2  Java Yes
application/x-java-applet;version=1.5  Java Yes
application/x-java-applet;jpi-version=1.5  Java Yes
application/x-java-bean  Java Yes
application/x-java-bean;version=1.1  Java Yes
application/x-java-bean;version=1.1.1  Java Yes
application/x-java-bean;version=1.1.2  Java Yes
application/x-java-bean;version=1.1.3  Java Yes
application/x-java-bean;version=1.2  Java Yes
application/x-java-bean;version=1.2.1  Java Yes
application/x-java-bean;version=1.2.2  Java Yes
application/x-java-bean;version=1.3  Java Yes
application/x-java-bean;version=1.3.1  Java Yes
application/x-java-bean;version=1.4  Java Yes
application/x-java-bean;version=1.4.1  Java Yes
application/x-java-bean;version=1.4.2  Java Yes
application/x-java-bean;version=1.5  Java Yes
application/x-java-bean;jpi-version=1.5  Java Yes


cheers

anyweb

Edited by anyweb, 06 September 2005 - 03:46 PM.

  • evsd605xyx@gmail.com and Orgardautty like this
i do windows too

#2 FluKex

FluKex

    Linux-Noob Member

  • Members
  • PipPip
  • 57 posts

Posted 08 January 2005 - 11:32 PM

So, sun decided to change its layout a bit, the link in anywebs post is actually to download jre 1.4.2. the instructions provided will not work, specifically the ln -s line to link the lib to firefox.

simple fix..

go here, and make sure you select the JRE 5.0 Update 1.

http://java.sun.com/j2se/1.5.0/download.jsp

Once you've done this, find the libjavaplugin_oji.so file

updatedb;locate libjavaplugin_oji.so

then run the ln -s with the result you got from the locate command.

Take note, on my system i got 2 results.

/usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so
/usr/java/jre1.5.0_01/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

I chose the first one to link to..
soo

cd ~/.mozilla/plugins
ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so


Now it should link fine. restart firefox and you should be good to go :lol:
  • Orgardautty likes this
sig removed due to indecency

#3 grep420

grep420

    Linux-Noob Frequent Member

  • Members
  • PipPipPip
  • 119 posts

Posted 13 January 2005 - 05:20 PM

If you want to add the plugin globally link it to your firefox plugins dir for 1.0 version it would be:

ln -s /usr/java/j2re1.4.2_06/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/firefox-1.0/plugins
Four whores and seven beers ago.

#4 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 23 January 2005 - 11:18 PM

Thanks flukex and grep420 for pointing out that :)

If anyone has any other issues with installing the java plugin in FireFox in Fedora Core Release 3 then please post your issues here so that others may learn.

We all need to help each other to help make linux-noob.com a better place for noobs to learn how to get to grips with linux :)

because it sure ain't easy by yourself

cheers

anyweb
linux-noob extrodinaire.
i do windows too

#5 rdogg

rdogg

    Noob

  • Members
  • Pip
  • 3 posts

Posted 01 February 2005 - 03:59 PM

thanx for this howto it worked fine on a mandrake 10 just changed the version of java and everything else was exactly the same B)

#6 tko0383

tko0383

    Noob

  • Members
  • Pip
  • 9 posts

Posted 01 February 2005 - 10:06 PM

I followed the directions for installing java for firefox on fc3. When I goto a website with java firefox just like crashes or closes. Thanks for the help :o

#7 OVERKILL

OVERKILL

    Noob

  • Members
  • Pip
  • 17 posts

Posted 05 February 2005 - 06:26 PM

What version of JRE did you download and which plugin did you link to?

#8 mizzy

mizzy

    Linux-Noob Member

  • Members
  • PipPip
  • 71 posts

Posted 28 March 2006 - 03:00 PM

Boy was that confusing! (to the newbie learner that is :unsure: )

A days worth of work and I've finally got java on my FC4, boy, never wanna go thru all that again, my heads still spinning :lol: :D

Thanks for this post guys :)

#9 Why did I get this?

Why did I get this?

    Noob

  • Members
  • Pip
  • 14 posts

Posted 01 July 2007 - 11:47 PM

I got up to where you type chmod, then it says that theres no such file or directory. How do I make it see the file?

#10 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 02 July 2007 - 10:56 AM

you must chmod +x the_new_name_of_the_file.bin and not the name in the HOWTO above,

cheers
anyweb
i do windows too

#11 Why did I get this?

Why did I get this?

    Noob

  • Members
  • Pip
  • 14 posts

Posted 02 July 2007 - 07:05 PM

I did, and it says that it doesn't exist.

#12 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 02 July 2007 - 10:47 PM

what file did you download (more details please)

it would be a good idea to copy paste your commands and resulting errors here along with an ls -al of the directory you are in (plus pwd to see what directory it is)

so do this

pwd
ls -al

then paste that here, plus do the commands (chmod +x..... ) and paste the output here

cheers
anyweb
i do windows too

#13 Why did I get this?

Why did I get this?

    Noob

  • Members
  • Pip
  • 14 posts

Posted 02 July 2007 - 11:42 PM

Ok, now it worked but when i restarted firefox and went to about:plugins I didn't see java anywhere

#14 anyweb

anyweb

    Administrator

  • Admin
  • PipPipPipPipPipPipPipPip
  • 3,689 posts

Posted 03 July 2007 - 08:29 AM

thats because you have probably linked it (ln -s) to the wrong plugin,

as I've asked already, PASTE the commands you have tried here so we can see what you are doing, it's hard to guess what you are doing,

in addition, WHICH jave download did you try with ?

cheers
anyweb
i do windows too

#15 Why did I get this?

Why did I get this?

    Noob

  • Members
  • Pip
  • 14 posts

Posted 04 July 2007 - 02:08 AM

I'm doing the instructions you have at the top, word for word except the file name.

The java is j2re-1_4_2_06-linux-i586-rpm.bin

#16 Rich

Rich

    Noob

  • Members
  • Pip
  • 1 posts

Posted 21 June 2011 - 07:54 PM

firefox 5 on x86_64 requires the 32 bit plugin

/usr/java/<latest version>/lib/i386/libnpjp2.so

The Linux x64 rpm does not include it.

attempting to install the 32 version after you have already installed the 64 bit version

./jre-6u26-linux-i586-rpm.bin

tells you
package jre-1.6.0_26-fcs.i586 is already installed

work around
extract the files from the rpm

rpm2cpio jre-6u26-linux-i586.rpm | cpio -idmv
copy the i386 directory to the latest release directory
cp -R ~/Downloads/usr/java/jre1.6.0_26/lib/i386 /usr/java/jre1.6.0_26/lib/
update the link in your ~/.mozilla/plugins
ln -sf /usr/java/jre1.6.0_26/lib/i386/libnpjp2.so .
about:plugins to verify

voila




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users