LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-08-2011, 08:47 PM   #1
Drew Eckhardt
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Java plugin does not work with 64 bit debian Lenny, 32 bit Mozilla 3.6.8, java 1.6_20


I'm using a 32 bit Mozilla 3.5.9 under 64 bit Debian Lenny (5) so I get working plugins and add-ons. Java from the Debian package (but I get the same result starting with the one from Sun/Oracle).

libjavaplugin_oji.so
lrwxrwxrwx 1 root root 69 2011-02-08 17:49 libjavaplugin_oji.so -> /usr/lib/jvm/ia32-java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

net.ipv6.bindv6only = 0, java shows up in about:plugins

Attempting to run any java applet produces a class not found exception.

For example, going to http://www.javatester.org/enabled.html with trace set to 5 in the Java console produces the following.

Note the absence of socket or other causing exceptions deeper in the call stack.

Code:
Java Plug-in 1.6.0_20
Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
User home directory = /home/drew
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
basic: New window ID: 0
basic: New window ID: 38350bf
basic: Value of xembed: 1
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@da1515, refcount=3
basic: setWindow: call before applet exists:38350bf
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@e7eec9
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
network: Cache entry not found [url: http://www.javatester.org/Tiny.class, version: null]
network: Connecting http://www.javatester.org/Tiny.class with proxy=DIRECT
network: Connecting socket://www.javatester.org:80 with proxy=DIRECT
network: Cache entry not found [url: http://www.javatester.org/Tiny.class, version: null]
network: Connecting http://www.javatester.org/Tiny.class with proxy=DIRECT
network: Connecting socket://www.javatester.org:80 with proxy=DIRECT
load: class Tiny not found.
java.lang.ClassNotFoundException: Tiny
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2298)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
	at sun.applet.AppletPanel.run(AppletPanel.java:368)
	at java.lang.Thread.run(Thread.java:619)
basic: Exception: java.lang.ClassNotFoundException: Tiny
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
	at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
	at java.net.InetAddress.getAllByName(InetAddress.java:1084)
	at java.net.InetAddress.getAllByName(InetAddress.java:1020)
	at java.net.InetAddress.getByName(InetAddress.java:970)
	at sun.plugin.liveconnect.SecureInvocation.getDefaultProtectionDomain(SecureInvocation.java:402)
	at sun.plugin.liveconnect.SecureInvocation.access$100(SecureInvocation.java:51)
	at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:133)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:121)
	at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
	at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
	at sun.plugin.navig.motif.AThread.run(AThread.java:32)
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
	at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
	at java.net.InetAddress.getAllByName(InetAddress.java:1084)
	at java.net.InetAddress.getAllByName(InetAddress.java:1020)
	at java.net.InetAddress.getByName(InetAddress.java:970)
	at sun.plugin.liveconnect.SecureInvocation.getDefaultProtectionDomain(SecureInvocation.java:402)
	at sun.plugin.liveconnect.SecureInvocation.access$100(SecureInvocation.java:51)
	at sun.plugin.liveconnect.SecureInvocation$1.run(SecureInvocation.java:82)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.liveconnect.SecureInvocation.ConstructObject(SecureInvocation.java:70)
	at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
	at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
	at sun.plugin.navig.motif.AThread.run(AThread.java:32)
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
	at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
	at java.net.InetAddress.getAllByName(InetAddress.java:1084)
	at java.net.InetAddress.getAllByName(InetAddress.java:1020)
	at java.net.InetAddress.getByName(InetAddress.java:970)
	at sun.plugin.liveconnect.SecureInvocation.getDefaultProtectionDomain(SecureInvocation.java:402)
	at sun.plugin.liveconnect.SecureInvocation.access$100(SecureInvocation.java:51)
	at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:133)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:121)
	at sun.plugin.navig.motif.AThread.handleRequest(Native Method)
	at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:40)
	at sun.plugin.navig.motif.AThread.run(AThread.java:32)
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1c501f7
basic: Destroying applet ...
basic: Disposing applet ...
basic: Joining applet thread ...
basic: Joined applet thread ...
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@da1515, refcount=2
basic: Done ...

Last edited by Drew Eckhardt; 02-09-2011 at 03:20 PM.
 
Old 02-15-2011, 12:24 PM   #2
Drew Eckhardt
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
The interesting thing here is the second (java.net.UnknownHostException) exception:

Code:
basic: Exception: java.lang.ClassNotFoundException: Tiny
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://www.javatester.org
java.net.UnknownHostException: www.javatester.org
which is fixed by installing the lib32nss-mdns package thus making Java work for internet things, notably as a browser plugin.
 
  


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
Where do I download Mozilla Firefox for 64-bit Debian Linux (Lenny) that Flash works? bgoodr Linux - Software 15 06-17-2012 08:40 PM
64 bit java plugin for firefox jong357 Slackware 2 01-12-2010 05:42 AM
Firefox 3/ All essential plugins/ Debian Lenny 64 Bit/ Will work on 32 bit also lindylex LinuxAnswers Discussion 0 07-27-2009 01:58 PM
java plugin suse 11.0 64 bit version galliar Suse/Novell 10 12-19-2008 09:52 AM
64-bit Opera, 64-bit Java. Where to get plugin? CJ Chitwood Linux - Software 5 08-01-2008 12:09 PM


All times are GMT -5. The time now is 09:32 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