Debian Wheezy and Java Plugin

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
fabriciopj
Posts: 4
Joined: 2013-06-15 04:23

Debian Wheezy and Java Plugin

#1 Post by fabriciopj »

Hi all,

I have installed, via apt-get, the JDK 7, as you can see below:

Code: Select all

fabricio@debian7:~$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
But i cannot make the Java Plugin work on my Iceweasel. I read in some foruns that i should create a simbolyc link from the file "libnpjp2.so" to "$HOME/.mozilla/plugins", but i cannot find the lib "libnpjp2.so".

What can i do to solve this issue?

Thanks in advance.

User avatar
mor
Posts: 970
Joined: 2010-08-28 15:16
Location: mor@debian

Re: Debian Wheezy and Java Plugin

#2 Post by mor »

It seems to me you have jdk 6, not 7.
This is JDK 7:

Code: Select all

mor@debian:~$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-5)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
mor@debian:~$ 
Anyway, did you install the icedtea-6-plugin (for JDK6) package?

If you want jdk 7 instead, install icedtea-7-plugin and apt will install all that is needed.
You can eventually purge the 6 stuff, if you want or care.

shirish
Posts: 845
Joined: 2010-12-08 12:59

Re: Debian Wheezy and Java Plugin

#3 Post by shirish »

This is the way I did it :-

Code: Select all

$ sudo aptitude install icedtea-7-plugin=1.4-3 icedtea-netx=1.4-3 icedtea-netx-common=1.4-3 -y
Once I did that I just had a look inside the icedtea-7-plugin :-

Code: Select all

$ dpkg -L icedtea-7-plugin
/.
/usr
/usr/lib
/usr/lib/jvm
/usr/lib/jvm/java-7-openjdk-amd64
/usr/lib/jvm/java-7-openjdk-amd64/jre
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so
/usr/lib/mozilla
/usr/lib/mozilla/plugins
/usr/share
/usr/share/doc
/usr/share/doc/icedtea-7-plugin
/usr/share/doc/icedtea-7-plugin/copyright
/usr/share/doc/icedtea-7-plugin/changelog.Debian.gz
/usr/share/icedtea-web
Then go to /usr/lib/mozilla/plugins and see if everything is right there :-

Code: Select all

/usr/lib/mozilla/plugins$ ll libjavaplugin.so 
lrwxrwxrwx 1 root root 39 Aug  6 20:12 libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so
As everything checked out, the last thing to do was open the browser and go to Tools > Addons and see if in the plugins tab it says something and for sure it says :-

Code: Select all

IcedTea-Web Plugin (using IcedTea-Web1.4 (1.4-3))
The IcedTea-Web Plugin executes Java applets [u]More[/u]
And then lastly, go to https://www.java.com/en/download/testjava.jsp and check that the icedtea7 webplugin logo is displayed.
Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), D-Link 2750u modem+router, 64-bit Debian Testing, Mate 1.26

Post Reply