LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-28-2009, 04:28 PM   #1
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
Plugin java not working on Iceweasel


Hi,

I just install Debian squeeze and I have got a problem with java plugin in Iceweasel.

I made
Code:
aptitude install sun-java6-jre sun-java6-plugin
and the link libjavaplugin.so is present in /usr/lib/mozilla/plugins.

Here is the result of Aboutlugins in Iceweasel:
Code:
Java(TM) Plug-in 1.6.0_16

    Nom de fichier : libnpjp2.so
    The next generation Java plug-in for Mozilla browsers.

Type MIME 	Description 	Suffixes 	Autorisé
application/x-java-vm 	Java™ Plug-in 		Oui
application/x-java-applet 	Java™ Plug-in Applet 		Oui
application/x-java-applet;version=1.1 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.1.1 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.1.2 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.1.3 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.2 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.2.1 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.2.2 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.3 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.3.1 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.4 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.4.1 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.4.2 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.5 	Java™ Plug-in 		Oui
application/x-java-applet;version=1.6 	Java™ Plug-in 		Oui
application/x-java-applet;jpi-version=1.6.0_16 	Java™ Plug-in 		Oui
application/x-java-bean 	Java™ Plug-in JavaBeans 		Oui
application/x-java-bean;version=1.1 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.1.1 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.1.2 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.1.3 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.2 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.2.1 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.2.2 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.3 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.3.1 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.4 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.4.1 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.4.2 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.5 	Java™ Plug-in 		Oui
application/x-java-bean;version=1.6 	Java™ Plug-in 		Oui
application/x-java-bean;jpi-version=1.6.0_16 	Java™ Plug-in 		Oui
==> it seems to be ok.

But, in www.java.com, when I want to check the java virtual machine, it falls in error.
Here is the result of java console:
Code:
charger : classe jreCheck.class introuvable.
java.lang.ClassNotFoundException: jreCheck.class
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:525)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:161)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
	at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
	at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
	at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
	... 6 more
Exception : java.lang.ClassNotFoundException: jreCheck.class
charger : classe jreVerify.class introuvable.
java.lang.ClassNotFoundException: jreVerify.class
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:525)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:161)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
	at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
	at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
	at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
	... 6 more
Exception : java.lang.ClassNotFoundException: jreVerify.class
charger : classe testvm2/Main.class introuvable.
java.lang.ClassNotFoundException: testvm2.Main.class
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:525)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:161)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
	at sun.net.www.http.HttpClient.New(HttpClient.java:306)
	at sun.net.www.http.HttpClient.New(HttpClient.java:323)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
	at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
	at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
	at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
	... 6 more
Exception : java.lang.ClassNotFoundException: testvm2.Main.class
Could someone help when activating this plugin ?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-28-2009, 04:45 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
as root try
Code:
update-java-alternatives --set java-6-sun
BTW, I don't think the java test on that site works correct for linux.
Can you use java on other sites?

Last edited by repo; 12-28-2009 at 04:50 PM.
 
Old 12-28-2009, 05:13 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
http://www.javatester.org/version.html and http://www.javatester.org/enabled.html works just fine here.

about:config in iceweasel shows:
Java(TM) Plug-in 1.6.0_17
Filename /usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/i386/libnpjp2.so

This is on sid but the location should be the same.
 
Old 12-28-2009, 05:23 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
could this be the problem ?

http://www.linuxquestions.org/questi...ps-...-778366/
 
3 members found this post helpful.
Old 12-28-2009, 05:23 PM   #5
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
as root try
Code:
update-java-alternatives --set java-6-sun
BTW, I don't think the java test on that site works correct for linux.
Can you use java on other sites?
Thanks for you replies (repo and craievil).
Here is the result of the above command:

Code:
update-alternatives: error: pas d'alternatives pour appletviewer.          
update-alternatives: error: pas d'alternatives pour apt.                   
update-alternatives: error: pas d'alternatives pour extcheck.              
update-alternatives: error: pas d'alternatives pour HtmlConverter.         
update-alternatives: error: pas d'alternatives pour idlj.                  
update-alternatives: error: pas d'alternatives pour jar.                   
update-alternatives: error: pas d'alternatives pour jarsigner.             
update-alternatives: error: pas d'alternatives pour javac.                 
update-alternatives: error: pas d'alternatives pour javadoc.               
update-alternatives: error: pas d'alternatives pour javah.                 
update-alternatives: error: pas d'alternatives pour javap.                 
update-alternatives: error: pas d'alternatives pour java-rmi.cgi.          
update-alternatives: error: pas d'alternatives pour jconsole.              
update-alternatives: error: pas d'alternatives pour jdb.                   
update-alternatives: error: pas d'alternatives pour jhat.                  
update-alternatives: error: pas d'alternatives pour jinfo.                 
update-alternatives: error: pas d'alternatives pour jmap.                  
update-alternatives: error: pas d'alternatives pour jps.                   
update-alternatives: error: pas d'alternatives pour jrunscript.            
update-alternatives: error: pas d'alternatives pour jsadebugd.             
update-alternatives: error: pas d'alternatives pour jstack.                
update-alternatives: error: pas d'alternatives pour jstat.                 
update-alternatives: error: pas d'alternatives pour jstatd.                
update-alternatives: error: pas d'alternatives pour native2ascii.          
update-alternatives: error: pas d'alternatives pour rmic.                  
update-alternatives: error: pas d'alternatives pour schemagen.             
update-alternatives: error: pas d'alternatives pour serialver.
update-alternatives: error: pas d'alternatives pour wsgen.
update-alternatives: error: pas d'alternatives pour wsimport.
update-alternatives: error: pas d'alternatives pour xjc.
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/appletviewer
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/apt
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/extcheck
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/HtmlConverter
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/idlj
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jarsigner
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jar
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/javac
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/javadoc
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/javah
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/javap
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jconsole
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jdb
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jhat
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jinfo
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jmap
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jps
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jrunscript
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jsadebugd
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jstack
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jstatd
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/jstat
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/native2ascii
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/rmic
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/schemagen
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/serialver
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/wsgen
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/wsimport
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-sun/bin/xjc
The tests on http://www.javatester.org/version.html and http://www.javatester.org/enabled.html give the same issue (no pink rectangle).
 
Old 12-28-2009, 05:42 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
The suggestion from almatic should solve the problem.
 
Old 12-28-2009, 05:51 PM   #7
Zolex
Member
 
Registered: Feb 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Thank you very much, it is working perfectly now.
You are the best

Last edited by Zolex; 12-28-2009 at 05:52 PM.
 
Old 12-29-2009, 08:15 AM   #8
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Worked for me also.
Thanks almatic!.
 
  


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
Iceweasel Java plugin using the Apt version of Sun Java? Zaskar Debian 3 10-03-2008 08:35 AM
Java applets not working in iceweasel mikieboy Debian 1 06-28-2007 11: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 03:40 PM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 03:38 PM
java plugin not working luckystrikes7 Linux - Software 3 05-23-2004 09:02 AM


All times are GMT -5. The time now is 04:33 AM.

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