-
Hello,
I've got a slight problem with IE's Java VM and I'm wondering if you guys can help me out. I'm trying to access a page with Javascript using IE but the Javascript failed to run. Upon checking the Java console on IE, I've got the following error message:
java.lang.ClassNotFoundException: netscape.security.ForbiddenTargetException
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at IsoClientApplet.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
So, I'm guessing that the MS VM couldn't see the netscape.security.* classes. I've tried to do SET CLASSPATH but it didn't seem to work. Is there a way to get the VM to have access to this exception class?
Thanks in advance!
-
Include them in the JAR file with your own classes:
Code:
JAR file contents
-----------------
uk/co/noz/MyClass.class
uk/co/noz/MyOtherClass.class
netscape/security/NetscapeException.class
...or something similar. Then use the CODEBASE attribute of the HTML tag.