Enable Java plugin in Iceweasel, Firefox and Chrome in Debian

I am fan of Debian GNU/Linux wheezy and I am using three different browser’s (Iceweasel, Firefox, Chrome) for various reasons. If you want to enable Java plugin for all those three browsers, then there is a single action that can do the work for you.

First of all you have to install a JRE, in order to have a VM environment for your browser. This could be provided by SUN (now Oracle) JRE 6 or 7 , or OpendJDK 6 or 7.  If you have installed any of these, then you have to locate the location of the required library (for Oracle JRE is the “libnpjp2.so” file) and create a symbolic link to this.

Just follow these steps:

1) Create “plugins” directory for Mozilla:

$> mkdir /home/myuser/.mozilla/plugins

2) Create library symbolic link:

$> ln -s /opt/myjdks/jdk/jdk1.6.0_26/jre/lib/i386/libnpjp2.so  /home/myuser/.mozilla/plugins/

As you can see I use Oracle JDK 6 (1.6.0_26), which I have downloaded from Oracle and just extracted to directory “/opt/myjdks/”.

You can do it with one command, but I split them to two separate commands to be more readable.

If you have installed Firefox as me (downloaded from Mozilla and just extracted somewhere and using a different profile in order to use Firefox and Iceweasel concurrently), then this Firefox will use this plugin too.

UPDATE: 16/2/2014
It is very easy to install Java plugin in your browser, using package icedtea-7-plugin.
In a Debian like system, just run this as root:
$> apt-get install icedtea-7-plugin
This will install web browser plugin based on OpenJDK 7 and IcedTea.

Regards,
Adrianos Dadis.

Democracy Requires Free Software

About these ads

About Adrianos Dadis

Adrianos is working as senior software engineer in telcos business domain. Particularly interested in enterprise integration, multi-tier architecture and middleware services. He mainly works with JBoss, Weblogic, JBoss, Java EE, Spring, Drools, Oracle SOA Suite and various ESBs.
This entry was posted in Administration, GNU/Linux and tagged , , , , , , . Bookmark the permalink.

10 Responses to Enable Java plugin in Iceweasel, Firefox and Chrome in Debian

  1. Anonymous says:

    Thanks man, this helped me solve another problem :D

  2. Pingback: make java work for your browser | not relevant / permanent TODO

  3. Anonymous says:

    Incredible !!!…..After so many “cliks”….a solution from Greece !!!….I had to converte the .tar.gz pack with the “alien” tool (into the Synaptic) and after i made exactly your post. Thanks…

  4. Dave says:

    Afraid it fails on my system, Debian Wheezy 64n bit with “real” Firefox

  5. Paul says:

    Wheezy in original browser (Iceweasel 17.09)
    First i sent /home/usr/.mozilla/plugins/libnpjp2.so to the trash.(Im not sure if necessary)
    Then i download jre-7u45-linux-x64.tar.gz [from Java page of course :)]….
    So i made a java file in this way: #mkdir /usr/java
    I moved the jre-7u45-linux-x64.tar.gz like this: #mv /usr/Downloads/jre-7u45-linux-x64.tar.gz /usr/java
    Into the java file (cd /usr/java) i made this way:#tar zxvf jre-7u45-linux-x64.tar.gz
    To finish this command: # ln -s /usr/lib64/jvm/jre1.7.0_45/lib/amd64/libnpjp2.so /home/usr/.mozilla/plugins
    Close the Iceweasel and when open again you can make java test…
    See you…

  6. Anonymous says:

    not working with Debian 64bit and Firefox. Nor on Chrome

  7. Anonymous says:

    Works well on Debian Wheezy 64bits and Iceweasel 24.3.0
    Thanks a lot !

  8. monkeybc says:

    Whatever happened to being able to install the Java plugin using aptitude? More and more it seems like it’s time to switch back to Windows.

    • Adrianos Dadis says:

      Going back to Windows is like you are fan of NSA.
      We must get rid from whatever is closed source in our daily (and night) life.
      Think twice when you compare closed source to FOSS…

      Now on your question.
      It is very easy to install Java plugin in your browser.
      In a Debian like system, just run this as root:
      $> apt-get install icedtea-7-plugin

      This will install web browser plugin based on OpenJDK 7 and IcedTea.

Post your thought

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s