Re: JRE and Browser Plugin Problems



Roland wrote:

I'm prompted to save or select an application to open the file with. So the file exists, and I can see it (at least using http through port 80).


Can you save it to disk?


Yes.



4) Can you run the applet (or any other applet) in Internet Explorer?

No, I can't. Same errors as in Firefox. Which is what has convinced me that it is a Java or OS problem vice a browser or plugin problem.

5) Can your browser run an applet from your local file system (i.e. a "file://"-URL instead of a "http://"-URL in the addressbar)?
If you have installed the JDK you can find a couple of applets in the demo subdirectory of the JDK, e.g.
C:\Program Files\Java\jdk1.5.0_04\demo\applets\Clock
Otherwise you could compile a small applet using Eclipse (which you had installed IIRC), e.g.
<http://java.sun.com/docs/books/tutorial/getStarted/applet/index.html>
<http://java.sun.com/docs/books/tutorial/getStarted/applet/running.html>


Using the basic "Hello World" applet that you create as part of the Eclipse tutorial, I get the same type of errors:
1. A General Exception Error
2. The console window has these errors:
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1feca64, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@a37368
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
java.lang.ClassCastException: HelloWorld
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)
basic: Exception: java.lang.ClassCastException: HelloWorld
java.lang.ClassCastException: HelloWorld
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)
basic: Modality pushed
basic: Modality popped


The console window snapshot is here: http://home.comcast.net/~ktwo/java-error.jpg

6) Try clearing your browser cache (Tools -> Options -> Privacy -> Cache -> Clear)

No joy.


7) Try clearing the Java plugin cache (Start -> Settings -> Control Panel -> Java -> General -> Temporary Internet Files -> Delete Files)

No joy.


8) Make sure that the Java plugin supports the <APPLET> tag: Start -> Settings -> Control Panel -> Java -> Advanced -> <APPLET> tag support


This produces something interesting. When I open the control panel and select the "Advanced" tab, Netscape and Mozilla are unselected. When I attempt to select it, it tells me to check that they are properly installed or that I have sufficient permissions to change them. I should - I'm doing this on an XP Pro box with an Admin account. Maybe I'll try Netscape or Mozilla just to obtain another data point.


In addition to that: can you provide the URL of the page containing the JavaCallJS applet, so we can try it too.

Heck, just going to http://www.java.com/en produces the error. .



Relevant Pages

  • applet access problem
    ... I am running on Windows 2000, JDK 1.4.2, netbeans IDE 3.6 ... Error loading class: HelloWorld ... I have the .html and the .class files in the same directory. ... public class HelloWorld extends Applet { ...
    (comp.lang.java.help)
  • Re: transfer file via http
    ... I'm really surprised (at Mozilla). ... You don't suppose MS did something snarky in that applet to screw them up? ... jpeg but pretty clearly was a win32 exe, which it would write to disk and then run. ... It's a nasty, nasty world out there in Win32/internet land, ...
    (microsoft.public.vb.general.discussion)
  • Re: No keyboard into in JApplet
    ... JInternalFrame in an applet. ... I am running Firefox, Epiphany, Mozilla. ... How are people writing applets that get keyboard input and work under ... That seems to suggest that the Java crew broke it and need to fix it. ...
    (comp.lang.java.gui)
  • RE: Mozilla 1.7.2 crash with java on Fedora Core 2
    ... Trying it with the applet viewer should validate the locus of the issue. ... Mozilla 1.7.2 crash with java on Fedora Core 2 ... > I used a link and the right plugin. ... Any difference in video driver? ...
    (Fedora)
  • Re: mozilla-applet-crash
    ... > Java 1.4.2). ... > with mozilla with and without server started. ... > closes immediately after calling the webpage containing the applet. ... > I could not find any hints how to solve my problem. ...
    (comp.lang.java.help)