Re: JRE and Browser Plugin Problems
- From: Roland <roland@xxxxxxxxx>
- Date: Sun, 14 Aug 2005 13:25:01 +0200
On 14-8-2005 2:30, K2 wrote:
Roland wrote:[...]
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).
Got it. Once I expanded the full path, it shows the path to the Java directory, not the Firefox plugin directory.
You could copy those DLLs to Firefox' plugins directory. Just to see if it makes a difference. [verify with about:plugins that Firefox recognizes all DLLs in its own plugins dir]
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.]
I'm running Kerio 4.1, Norton 2005, and a Netgear router. I've tried running applets with both Kerio and Norton disabled - no joy. I haven't tried taking the router out of the loop. Mostly because things have worked with router before. The only changes I've made to the default config is to port forward port 113 ident for IRC and some ports for DCC.
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.]
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?
One thing that doesn't work though is this line:
"network: Connecting http://www.java.com/jsp_utils/JavaCallJS/class.class with proxy=DIRECT"
Which follows JavaCallJS.class line in the console. I get a "File Not Found" from the Java web site. Significant?
That's normal. The Java plugin first tries to access the class file as it was specified in the applet's code attribute
<applet code="JavaCallJS.class">
If it cannot load it, the plugin assumes that the code attribute was a the name of a class /without/ the '.class' extension, like
<applet code="mypackage.MyApplet">
The Java plugin then automatically adds the '.class' extension and tries to load it (as if 'JavaCallJS' was 'mypackage' and 'class' was 'MyApplet'). So it tries to load the file 'class.class' in the package subfolder 'JavaCallJS' (like it was loading http://www.java.com/jsp_utils/mypackage/MyApplet.class).
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.
No proxy, just a Netgear router with NAT.
I'm completely void of any ideas at this point.
4) Can you run the applet (or any other applet) in Internet Explorer?
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>
6) Try clearing your browser cache (Tools -> Options -> Privacy -> Cache -> Clear)
7) Try clearing the Java plugin cache (Start -> Settings -> Control Panel -> Java -> General -> Temporary Internet Files -> Delete Files)
8) Make sure that the Java plugin supports the <APPLET> tag: Start -> Settings -> Control Panel -> Java -> Advanced -> <APPLET> tag support
In addition to that: can you provide the URL of the page containing the JavaCallJS applet, so we can try it too.
--
Regards,
Roland de Ruiter ` ___ ___ `/__/ w_/ /__/ / \ /_/ / \ .
- Follow-Ups:
- Re: JRE and Browser Plugin Problems
- From: K2
- Re: JRE and Browser Plugin Problems
- References:
- JRE and Browser Plugin Problems
- From: K2
- Re: JRE and Browser Plugin Problems
- From: Roland
- Re: JRE and Browser Plugin Problems
- From: K2
- JRE and Browser Plugin Problems
- Prev by Date: Re: how java variables are stored?
- Next by Date: Re: tomcat/applet question...
- Previous by thread: Re: JRE and Browser Plugin Problems
- Next by thread: Re: JRE and Browser Plugin Problems
- Index(es):
Relevant Pages
|