LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Java on Iceweasel (https://www.linuxquestions.org/questions/debian-26/java-on-iceweasel-591179/)

atheist 10-11-2007 06:43 PM

Java on Iceweasel
 
Using Lenny I set up the Sun Java 6 run time environment (sun-java6-jre) via apt. Now when I use Iceweasel to open pages that require Java I get a message telling me additional plugins are required to view the pages, then direction me to: http://java.com/en/download/index.jsp.

about:plugins doesn't show anything Java related either...

Has someone gone through this before and knows what I have to do?

Thanks.

craigevil 10-11-2007 08:19 PM

apt-get update && apt-get install sun-java6-jre sun-java6-plugin [or -jdk, for dev-work] ; then do: update-alternatives --config java : older version can then be removed

If the above doesn't work try deleting the plugin.dat file in your ~mozilla directory.

piva 01-06-2008 12:39 AM

This was really helpfull craigevil. Solved the problem for me, thank you.

hunter3740 05-19-2010 02:24 PM

java plugin and iceweasel (and a repository that works)
 
I know this is an old post (but I was looking and didn't quite find what I needed and I love linuxquestions and others might want to know...).

I only installed the base install of Debian 5 and didn't say yes to allowing all the online repositories (and use iceweasel and not firefox), so my steps were as follows:

sudo pico /etc/apt/sources.list
# added "deb http://mirrors.kernel.org/debian lenny non-free"
sudo apt-get update
sudo apt-get install sun-java6-jre
sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/iceweasel/plugins/libjavaplugin_oji.so
# symbolic link because http://plugindoc.mozdev.org/linux.html#Java says don't copy

and then of course, craigevil's suggestion (spelled out):
sudo update-alternatives --config java
# type "3" and Enter (because "/usr/lib/jvm/java-6-sun/jre/bin/java" is option 3 for me)
sudo rm -r /usr/lib/jvm/java-gcj
sudo rm -r /usr/bin/gij-4.3
# i.e. remove the other two options

deepclutch 05-19-2010 11:51 PM

libnpjp2.so is the java plugin.I use Java7(beta) Jre and I've to Symlink libnpjp2.so to /usr/lib/mozilla/plugins directory to work.I have this for My 64-bit System.

http://dlc.sun.com.edgesuite.net/jdk...ies/index.html - download the ".bin" archive and use "java -jar"(will need sun java 6;Later purge sun java packages using apt) to extract to /opt directory.later symlink to firefox/mozilla plugins directory.it will work. :)
about: plugins shows:
Quote:

Java(TM) Plug-in 1.7.0

File: libnpjp2.so
Version:
The next generation Java plug-in for Mozilla browsers
.
ofcourse,have to set java env variables and PATH.(in /etc/profile as "export PATH=$PATH:/opt/jre1.7.0/bin
export JAVA_HOME=/opt/jre1.7.0/bin/java")
EDIT:It will not work with Iceweasel/Firefox due to a known bug.
the fix for Debian is:
Code:

sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \
/etc/sysctl.d/bindv6only.conf && sudo invoke-rc.d procps restart

Courtesy here:
http://bugs.debian.org/cgi-bin/bugre...i?bug=560056#5

Thanks!


All times are GMT -5. The time now is 02:12 AM.