Running Java Applet Under IE6 from .NET User Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to run a Java Applet on my ascx page and am getting an IO
exception when IE6 tries to load the applet. It seems a lot of others are
getting the same problem but a search of the web did not turn up any sort of
solution. I have tried most of the suggestions but none of them seem to have
helped with the problem.

My error is below and the most significant part of it is the HTTP connection
failure.

load: class apXPDropDown.class not found.
java.lang.ClassNotFoundException: apXPDropDown.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
 
As far as Java is concerned it looks it shouldn't be an ASP.NET problem...
Try http://forum.java.sun.com/thread.jspa?threadID=521842 (caused by Web
permission or IE setting) or a Java forum. The applet is perhaps in a
directory where you don't have access (which is likely if you use a
directory that is not allowed access through the net as you have only ascx
files in it but you put also the applet file in it).

Patrice
 
Patrice. I agree it is probably a Java problem but I am assuming a lot of
other .NET developers have hit the same problem and that is why I put the
message here.

I have changed the permissions on all of the directories involved so that
everyone can get to them, that is the first thing I thought of.
 
Did you check also the IIS log to see what happens on this request ?

Also the article mentionned also an IE setting...

Patrice

--
 
Back
Top