LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-11-2007, 06:43 PM   #1
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
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.

Last edited by atheist; 10-11-2007 at 06:57 PM.
 
Old 10-11-2007, 08:19 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
1 members found this post helpful.
Old 01-06-2008, 12:39 AM   #3
piva
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
This was really helpfull craigevil. Solved the problem for me, thank you.
 
Old 05-19-2010, 02:24 PM   #4
hunter3740
LQ Newbie
 
Registered: Mar 2010
Location: Pittsburgh
Distribution: Debian 6
Posts: 28

Rep: Reputation: 17
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
 
1 members found this post helpful.
Old 05-19-2010, 11:51 PM   #5
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
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!

Last edited by deepclutch; 06-03-2010 at 01:42 AM. Reason: updated
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Java for Iceweasel Barnes Linux - Software 7 06-30-2007 03:29 PM
Java applets not working in iceweasel mikieboy Debian 1 06-28-2007 10:00 PM
Java Plugin not working - Iceweasel 2.0.0.3, Java RE 1.6.0.01 Brian Ryans Linux - Software 7 05-11-2007 02:40 PM
help with java in iceweasel kennybob Linux - Software 2 04-20-2007 10:09 PM
iceweasel won't start CrashedAgain Debian 7 12-09-2006 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration