从今天起,我无法在 Eclipse 中访问 netscape.javascript.* 类 [英] Since today, I cannot access netscape.javascript.* classes within Eclipse

查看:25
本文介绍了从今天起,我无法在 Eclipse 中访问 netscape.javascript.* 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从今天起,我的 Eclipse 无法加载 JSObject.此代码以前工作正常.任何想法如何解决它?我在类路径中有简单的 netscape.jar.

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);
    }

推荐答案

在每个 JDK 子文件夹中都有一个名为 plugin.jar 的文件

In every JDK subfolder is a file called plugin.jar

获取此文件并将其添加到您的 Eclipse 类路径中.这将使它起作用 - 保证.

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

这篇关于从今天起,我无法在 Eclipse 中访问 netscape.javascript.* 类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆