Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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);
    }
like image 876
Tom Avatar asked Jul 30 '26 00:07

Tom


1 Answers

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.

like image 100
Dieter Avatar answered Aug 01 '26 14:08

Dieter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!