4

I am using ubuntu 14.10 and i installed jdk8 via apt-get install openjdk-8-jdk:i386. Using update-alternatives, I have made java 8 as the default one.

Now, when i checked java on firefox using this link, it showed java plugin is not working on browser.

To fix this, I tried to copy libnpjp2.so from /usr/lib/jvm/java-8-openjdk-i386/lib/i386 to ~/.mozilla/plugins folder.

But i can see, the plugin so file is missing inside the jvm libs folder

How can i make java plugin work in firefox with openjdk-8?

Madhavan
  • 151
  • 1
  • 1
  • 5
  • Is there some reason you are using 32 bit java (on a supposedly 64 bit machine)? – Wolfer Sep 30 '15 at 13:53
  • 1
    Cisco's webex works only on 32 bit firefox which needs 32 bit java – Madhavan Sep 30 '15 at 14:35
  • The what. Java is a language designed to be independent from the running machine's architecture by using a VM. That's why any machine (or smartphone) can run a jar file if they have a java VM installed. So the 32 bits are only relevant to the host OS. I'd recommend using a java VM that actually runs on your machine before trying to combine it with Firefox. – Wolfer Sep 30 '15 at 14:53
  • 1
    @Wolfer, you're right. In theory. I have no idea why, but audio doesn't work with Webex on 32 bit systems. – r1pp3rj4ck Oct 27 '15 at 08:43

1 Answers1

9

You need to install the icedtea-plugin:i386, it will create

/usr/lib/jvm/java-8-openjdk-i386/lib/i386/IcedTeaPlugin.so 

which you can symlink to

~/.mozilla/plugins/libnpjp2.so
Kaz Wolfe
  • 33,802
  • 20
  • 111
  • 168
r1pp3rj4ck
  • 206
  • 1
  • 2
  • 2
    $ sudo apt-get install icedtea-plugin – Yu Jiaao Jun 14 '16 at 04:40
  • @YuJiaao I think it's `sudo apt-get install icedtea-plugin:i386` on 64 bit systems. – r1pp3rj4ck Aug 29 '16 at 12:11
  • 1
    I had to add `ln -s /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so libnpjp2.so` – psv Jan 04 '17 at 14:06
  • There is no need to link with `libnpjp2.so`, I ran `ln -s /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so .` and activated IcedTea plugin by visiting https://java.com/en/download/installed8.jsp – Niloct Jan 10 '17 at 16:00
  • if you install java manually, you also need to make sure that the javaws binary points to the correct jdk version. in my case, i had an alternative configured that needed proper linking. – thrau Aug 09 '17 at 11:16