【问题标题】:Runtime error in using wordnet through JWNL通过 JWNL 使用 wordnet 时出现运行时错误
【发布时间】:2013-11-27 20:58:32
【问题描述】:

我正在尝试使用 JWNL 访问 Wordnet。

    public static void main(String[] args) throws JWNLException {
    // Initialize the database
    WordNetHelper.initialize("file_properties.xml");
}

在我初始化 file_properties.xml 的行中获取运行时异常, “线程“主”java.lang.NoClassDefFoundError 中的异常:org/apache/commons/logging/LogFactory”

我已将文件配置为通过将路径指定为指向字典文件, "C:\Program Files (x86)\WordNet\3.0\dict"

请帮忙!

【问题讨论】:

    标签: java wordnet


    【解决方案1】:

    看起来像是类路径中缺少 jar 的情况。

    将 lib/commons-logging.jar 添加到类路径。

    应该可以解决你的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多