Re: JRE and Browser Plugin Problems



On 13-8-2005 22:18, K2 wrote:

I'm trying to troubleshoot the cause of the following errors:

basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@a6aeed, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@af8358
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
network: Connecting http://www.java.com/jsp_utils/JavaCallJS.class with proxy=DIRECT
network: Connecting http://www.java.com/jsp_utils/JavaCallJS/class.class with proxy=DIRECT
load: class JavaCallJS.class not found.
java.lang.ClassNotFoundException: JavaCallJS.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: JavaCallJS.class


The error that has caught my eye is "open HTTP connection failed". I have local Java apps (Eclipse IDE, Unlimited FTP) that run fine but can't access the internet. But applets don't run - just generate errors like above. Turns out that there are no Java related plugins in the Firefox plugins directory. I've got Quicktime and Flash related files there, but nothing Java related. If I try to install JRE 5, it tells me that it's already installed. Yet applets (e.g. www.java.com) cause General Exception Errors and I still have no Java related files in my plugins directory.

Anybody have ideas as to the cause of this? Coudl somebody tell me which files need to be in the plugins directory? Maybe I can just copy them there myself.

Thx
-K2

Which OS are you using? [I'm assuming it's Windows, since you posted your message using Windows version of Thunderbird.]


Type "about:plugins" without quotes in the Firefox addressbar and see if Java is listed. Several Java plugin DLLs are typically listed, e.g.
*Java(TM) 2 Platform Standard Edition 5.0 Update 4*


    File name: C:\PROGRA~1\mozilla\FIREFO~1.0\plugins\NPOJI610.dll
    Java Plug-in 1.5.0_04 for Netscape Navigator (DLL Helper)

    MIME Type              Description   Suffixes   Enabled
    application/x-java-vm  Java                    Yes

[If you don't see the full path of the filename, type "about:config" in the addressbar (without quotes), locate the preference "plugin.expose_full_path" (no quotes) and set its value to true (double-click to toggle its value).]

On my system (W2K / Java 1.5.0_04) the following DLLs are listed
NPOJI610.dll
NPJPI150_04.dll
NPJava11.dll
NPJava12.dll
NPJava13.dll
NPJava14.dll
NPJava32.dll

Since you don't have Java plugins in the Firefox plugins directory, you may find that in your case the full path of the DLLs refer to the JRE directory (e.g. C:\Program Files\Java\jre1.5.0_04\bin\NPJPI160.dll).

Further things you should check
1) Are you using a firewall or an Internet Protection Suite that might be blocking Java applets / class files. [I'm assuming that you can view www.java.com without a problem in Firefox, so the firewall is not blocking the browser to open a HTTP connection.]


2) Can you copy the link http://www.java.com/jsp_utils/JavaCallJS.class to the Firefox address bar and open it? If you are prompted to save the class file, that's OK: it means that the browser can open it (but the Java plugin cannot). If Firefox cannot access it either, then a firewall or something else is blocking it. [FWIW, I can access the link, so the class file does exist.]

3) Are you using a proxy to access the internet? If you are (if you have selected a proxy in Tools -> Options -> General -> Connection Settings), then make sure that the Java plugin uses the same: [assuming Windows & Java 1.5] Start -> Settings -> Control Panel -> Java -> General -> Network settings -> Use browser settings.
--
Regards,


Roland de Ruiter
` ___      ___
`/__/ w_/ /__/
/  \ /_/ /  \
.



Relevant Pages

  • Re: Firefox Acroread plugin not working
    ... On Monday 24 April 2006 16:27, Paul Howarth wrote: ... have copied the java ns7 plugin to the firefox plugins dir, ... You might also try my Java HOWTO: ... Then I cleaned up the links and files in the plugins dirs, ...
    (Fedora)
  • Re: JDK 1.4.2_11, 1.5.0_06, unsigned applets consuming all free harddisk space
    ... Even when leaving the page the applet continues to work due ... Java is supposed to work similar on all platforms (write ... I tested with Firefox 1.5.0.3 and JDK 1.4.2_11 on a WinXP ...
    (Bugtraq)
  • Re: Applet PrivilegedActionException: InvocationTargetException
    ... JRE versions? ... Sorry should've said it was Java 1.6.0_12 and FireFox 2.0.0.4 (but same ... Applet element to a page with createElement ...
    (comp.lang.java.programmer)
  • Re: Firefox crash
    ... For me Firefox just disappears without log or message, ... problem wasn't bad until I went to Java 1.5 for my JRE. ... I have installed this plugins: ... >Shockwawe Flash and Java. ...
    (Fedora)
  • Re: [SLE] 64 bit Java - Continuing on
    ... It seems that Suse has installed java ... the new one only to serve Firefox and the ... > added to the Firefox plugins section) But, even though it shows as a 64 ... See the results of my commands ...
    (SuSE)