LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-02-2012, 01:58 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Rep: Reputation: 45
Java not working with iceweasel


hi

I've Squeeze with Gnome and I'm using iceweasel browser.
I've installed sun-java6-jre and sun-java6-plugin, but java in iceweasel doesn't work.
BTW Java is enabled in the browser settings.

Code:
# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

# update-alternatives --config java
There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java
Nothing to configure.
 
Old 02-02-2012, 07:55 PM   #2
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,608

Original Poster
Rep: Reputation: 45
I've solved this problem, the link to java plugin, installed automatically seems to be not OK:
Code:
# ls -la /etc/alternatives/iceweasel-javaplugin.so
lrwxrwxrwx 1 root root 48 Feb  2 18:57 /etc/alternatives/iceweasel-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so
# mv /etc/alternatives/iceweasel-javaplugin.so /etc/alternatives/iceweasel-javaplugin.so_old
# ln -s /usr/lib/jvm/java-6-sun-1.6.0.26/jre/plugin/i386/ns7 /etc/alternatives/iceweasel-javaplugin.so
Now it works well!

Last edited by cccc; 02-02-2012 at 08:04 PM.
 
Old 03-13-2012, 08:24 PM   #3
mikefranklet
LQ Newbie
 
Registered: Dec 2011
Posts: 15

Rep: Reputation: Disabled
Didn't work for me

I'm using the same version of java.
Followed this, but it still doesn't work for me
My little brother wants to play java games. Do you have any alternate ideas for what might fix it?
 
Old 03-13-2012, 08:44 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Cool

Quote:
Originally Posted by mikefranklet View Post
I'm using the same version of java.
Followed this, but it still doesn't work for me
My little brother wants to play java games. Do you have any alternate ideas for what might fix it?

Run the following commands as root:
update-alternatives --config java
update-alternatives --config javac

symlink the Java plugin as root
cd /usr/lib/mozilla/plugins/

Followed by :
ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so

You could also try using OpenJDK or follow the Howto in my LQ blog and install Oracle's Java.
 
1 members found this post helpful.
Old 07-07-2012, 08:20 PM   #5
malayo
Member
 
Registered: Dec 2010
Posts: 122

Rep: Reputation: 1
thanks craigevil

my steps based on your method, which works for wheezy amd64

1. download jre from http://www.oracle.com/technetwork/ja...ads/index.html
2. extract to /opt

# tar -xvf jre-7u5-linux-x64.tar.gz -C /opt/

3. symlink to mozilla plugins folder

# cd /usr/lib/mozilla/plugins/
# ln -s /opt/jre1.7.0_05/lib/amd64/libnpjp2.so

4. restart Iceweasel

Last edited by malayo; 07-07-2012 at 08:22 PM.
 
Old 09-23-2012, 12:20 PM   #6
globulon
LQ Newbie
 
Registered: Sep 2012
Posts: 1

Rep: Reputation: Disabled
Thanks for posting this answer craigevil and thanks for the breakdown malayo! I followed the procedure and it solved the problem.
 
Old 09-23-2012, 12:25 PM   #7
malayo
Member
 
Registered: Dec 2010
Posts: 122

Rep: Reputation: 1
glad it helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Java applets not working on iceweasel radiodee1 Debian 4 06-01-2010 06:31 PM
[SOLVED] Plugin java not working on Iceweasel Zolex Linux - Software 7 12-29-2009 07:15 AM
Iceweasel Java plugin using the Apt version of Sun Java? Zaskar Debian 3 10-03-2008 07:35 AM
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration