Re: JRE and Browser Plugin Problems



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_/ /__/
/  \ /_/ /  \
.



Relevant Pages

  • Re: JRE and Browser Plugin Problems
    ... Type "about:plugins" without quotes in the Firefox addressbar and see if Java is listed. ... 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). ...
    (comp.lang.java.help)
  • F9, Firefox 3 and Java plugin
    ... I'm having some problems with Firefox 3 on F9 and Sun's Java plugin. ... an internet banking site which I often use have a java applet ... different spacing of that of columns data, i.e., not aligned. ...
    (Fedora)
  • installing java plugin in browsers other than Iceweasel in amd64 etch
    ... I found this by comparing the results of running the applets in a WIndows environment that an IT manager I know uses...... ... I then went to the Blackdown site and replaced the gcj plugin with the amd64 java plugin that Blackdown provide. ... He wondered whether the java I am using might actually be fine, but something in the browser is preventing the applets from being displayed properly. ... I assume that the code in for the gcj java plugin and the Blackdown plugin are different enough from each other that they wouldn't necessarily produce exactly the same errors in the display and functioning of these applets. ...
    (Debian-User)
  • Re: installing java plugin in browsers other than Iceweasel in amd64 etch
    ... I installed the gcj java plugin that is available as a deb file into ... calculation applets I have used don't work at all or not properly. ... How do you get apt to install it in e.g. Epiphany or other browsers? ...
    (Debian-User)
  • japanese fonts problem with java plugin in firefox?
    ... I start firefox with the environment variable LANG set to ... created by the java plugin are encrypted and I can't read them. ...
    (freebsd-questions)