Jun 12, 2012

HowTo: Install Firefox / Google Chrome Java Plugin for Fedora 17

Step 1:
make sure your web browsers are close 

Step 2: (i'm using F17 64bit)
download and install jre-7u4-linux-x64.rpm from this java website http://java.com/en/download/manual.jsp?locale=en


Step 3:
open a terminal then type the following,
su -
updatedb
locate libnpjp2.so
copy the path of the libnpjp2.so file

Step 4a: (Firefox Users)
cd /home/user/.mozilla/plugins (replace user with your username)
ln -s path/of/libnpjp.so

Step 4b: (Chrome Users)
cd /opt/google/chrome/
mkdir plugins
cd plugins
ln -s path/of/libnpjp.so

Step 5:
run your browser

Bonus:
To open the java console, open a terminal (non-root account) then type
cd /usr/java/jre1.7.0_04/bin/
. ControlPanel

12 comments:

  1. Thanks a lot, its helpful.

    ReplyDelete
    Replies
    1. wow thanks! I think your the first reader of my blog... except me. :P

      Delete
  2. So I guess I'm the second reader ;-)

    Thank you for providing a simple easy-to-follow how to. It works.

    I have some additional info that someone may find usefull.

    For 32 bit versions of Fedora, you must download the rpm named i586, e.g. jre-7u7-linux-i586.rpm, otherwise the procedure to install is identical.

    You can just use yum to install the rpm:

    # yum install jre-7u7-linux-i586.rpm

    It did complain a bit about not being able to open some files, but java works fine, so apparently it didn't matter...


    Thanks again :-)

    ReplyDelete
    Replies
    1. Thanks for the info, i forgot to mention that i am using 64bit.

      Delete
  3. Hi, works fine w/ Fedora 17, but w/ 18 it cannot find libnpjp2.so. Any ideas?

    Much appreciate!

    ReplyDelete
    Replies
    1. Hi Peter, I will add a guide once I get a copy of F18. Its been a while since I was able to play around with my fedora, too much time spent on windows 7 playing World of Tanks!! haha!

      Delete
  4. It is actually there i.e. instructes work w/ Fedora 18, too!

    ReplyDelete
  5. Haha! 1st result of google for "fedora 17 java plugin firefox".
    Thanks for the helpful solution!
    Btw good domain name =P

    Cheers!
    Andor

    ReplyDelete
  6. simple and easy...thank you...a lot...
    the paths were different but works like a charm now...

    cd /usr/lib/chromium-browser/plugins
    ln -s /usr/java/jre1.7.0_17/lib/i386/libnpjp2.so

    cd /usr/lib/mozilla/plugins
    ln -s /usr/java/jre1.7.0_17/lib/i386/libnpjp2.so

    ReplyDelete
  7. https://fedoraproject.org/wiki/Java/FAQ?rd=JavaFAQ
    It's bit quicker if you use IcedTea!

    su -c "yum install icedtea-web"

    ReplyDelete
    Replies
    1. I was having troubles trying to enable Java in Chrome under Fedora 19. This command did the job
      su -c "yum install icedtea-web"
      and it is the easiest way to eneable it.

      Thank you Nathan Holland for this link and thanks to renegadex for this blog.

      Delete