Results 1 to 2 of 2

Thread: [Javascript] Getting MS VM to see netscape.* Java classes

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    6

    Question

    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!

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width