LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Plugin java not working on Iceweasel (https://www.linuxquestions.org/questions/linux-software-2/plugin-java-not-working-on-iceweasel-778552/)

Zolex 12-28-2009 03:28 PM

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 About:plugins 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 ?

repo 12-28-2009 03:45 PM

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?

craigevil 12-28-2009 04:13 PM

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.

almatic 12-28-2009 04:23 PM

could this be the problem ?

http://www.linuxquestions.org/questi...ps-...-778366/

Zolex 12-28-2009 04:23 PM

Quote:

Originally Posted by repo (Post 3807183)
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).

repo 12-28-2009 04:42 PM

The suggestion from almatic should solve the problem.

Zolex 12-28-2009 04:51 PM

Thank you very much, it is working perfectly now.
You are the best ;)

the trooper 12-29-2009 07:15 AM

Worked for me also.
Thanks almatic!.


All times are GMT -5. The time now is 01:58 PM.