【问题标题】:the problems with read Doc or Docx file in java netbeans [duplicate]java netbeans中读取Doc或Docx文件的问题[重复]
【发布时间】:2012-09-12 01:28:42
【问题描述】:

可能重复:
the problems with read Doc or Docx file in java

我在java中程序读取文件word时遇到问题。然后我运行程序,它报告错误如下:java.lang.NoClassDefFoundError: org/apache/poi/hwpf/HWPFDocument at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)....

【问题讨论】:

    标签: java netbeans apache-poi noclassdeffounderror hwpf


    【解决方案1】:

    java.lang.NoClassDefFoundError: org/apache/poi/hwpf/HWPFDocument

    这告诉您,在您的代码中的某处,您需要org.apache.poit.hwpf.HWPFDocument,而该类在您的系统上不可用。它似乎是Apache POI 的一部分,您可以使用download here

    【讨论】:

    • 我在项目中添加了Apache POI 3.8的库。现在,我下一步该怎么做?
    • @user1683695 按照 Jon Skeet 的说明处理您的其他问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-04-15
    • 1970-01-01
    • 2021-10-01
    • 2021-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多