How to Extract docx (Word 2007 above) using Apache POI

后端 未结 3 1581
失恋的感觉
失恋的感觉 2021-01-06 05:06

Hai, i\'m using Apache POI 3.6 I\'ve already created some code..

XWPFDocument doc = new XWPFDocument(new FileInputStream(file));
         wordxExtractor = ne         


        
3条回答
  •  借酒劲吻你
    2021-01-06 05:25

    It looks like you don't have all of the dependencies on your classpath.

    If you look at http://poi.apache.org/overview.html you'll see that dom4j is a required library when working with the OOXML files. From the exception you got, it seems that you don't have it... If you look in the POI binary download, you should find it in the ooxml-libs subdirectory.

提交回复
热议问题