javaappletnetscape

Since today, I cannot access netscape.javascript.* classes within Eclipse


Since today, my Eclipse fails to load JSObject. This code was previously working OK. Any ideas how to fix it? I do have simple netscape.jar in the classpath.

Here is the code that now fails to work:

import netscape.javascript.*;

  ...

    try {
        doc = (JSObject) JSObject.getWindow(app); //.getMember("document");
    } catch(JSException e) {
        doc = null;
        Debug.error("DBscorm().<init>: Exception " + e);
        throw(e);
    } catch(Exception e){
        doc = null;
        Debug.error("DBscorm().<init>: Exception " + e);
        throw(e);
    }

Solution

  • In every JDK subfolder is a file called plugin.jar

    Get this file and add it to your Eclipse classpath. This will make it work - guaranteed.