Re: JRE and Browser Plugin Problems



On 14-8-2005 20:18, K2 wrote:

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.

Yep, it's a problem of Java JRE or the Java browser plugin.

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)?
[...]
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: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
java.lang.ClassCastException: HelloWorld
[...]
It seems that the class did get loaded but it's not of the proper type (did you declare HelloWorld as subclass of Applet/JApplet ?).
If it's only HelloWorld not being an Applet subclass, it looks like the Java plugin is able to load applets from the local file system (a "file://"-URL). Otherwise some really strange things are going on.


6) Try clearing your browser cache (Tools -> Options -> Privacy -> Cache -> Clear)
No joy.
Bummer
7) Try clearing the Java plugin cache (Start -> Settings -> Control Panel -> Java -> General -> Temporary Internet Files -> Delete Files)
No joy.
Bummer
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.

Did you change it with Firefox/IE closed? If not, the browser may still have loaded parts of Java preventing the console from applying changes. If you did close them, I'm stumped. Could be some files in C:\Documents and Settings\LoginName\Application Data\Sun\Java\Deployment having some incompatible access rights (read only?)
You could try Netscape/Mozilla Suite --if you have them installed-- but I don't expect a different result.


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.
Yep, there it is: <applet name="detectjava" code="JavaCallJS.class" ...> [running OK for me, both with *Java].

One thing you may want to verify:
9) Can a Java application access the internet? Eclipse has an update function that you could try for this: Help -> Software Updates -> Find and Install.
If the Java app can't get access either, I'm still thinking of a firewall/Norton issue (do you have Norton's Internet Security suite or only Norton Antivirus; I'm only familiar with NAV2005 and I couldn't find any settings for blocking applets). It still could be a faulty Java installation too.
If the Java app can access the internet, it's really a problem of the Java browser plugin.


If you haven't tried already, maybe reinstalling the JRE (or JDK) solves the problem.

I'm running out of ideas. Maybe some other reader has had a similar problem (and solved it)?
--
Regards,


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



Relevant Pages

  • RE: not reconizing plug ins
    ... may appear due to various security settings in your browser. ... you need to adjust you security settings. ... How to reset your security settings in Internet Explorer: ... Java and installed the new one, when I click on a game to play the Java icon ...
    (microsoft.public.windowsxp.basics)
  • Re: browser screen capture with java applet
    ... the applet would be to do the job of the actual image capturing on each ... current browser window - if that's relevant. ... minimum Java version. ...
    (comp.lang.java.programmer)
  • Re: No joy at all
    ... If no joy with Robert's suggestions.....and you can see the test applet ... General tab...Network settings - select "Use browser settings". ... Java Runtime Environment, if still there. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE & applets
    ... using a version that is too new for the browser. ... IE's version of Java ... >> has been the central issue in multiple lawsuits against MS by Sun. ... to download version 1.1 from Sun and use it to create your applet. ...
    (comp.lang.java.help)
  • Re: Java in Browser
    ... An unsigned applet can only access the host it is retrieved from. ... We want a browser to be our standard control interface, with each tab becoming a particular control function. ... Having said that, there is a real need for a standard Java app to be able to run in a browser tab, rather than independently. ...
    (comp.lang.java.programmer)