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. |
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. |
This was really helpfull craigevil. Solved the problem for me, thank you.
|
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 |
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:
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/' \ http://bugs.debian.org/cgi-bin/bugre...i?bug=560056#5 Thanks! |
All times are GMT -5. The time now is 02:12 AM. |