Apache POI java.lang.NoClassDefFoundError

时间:2018-03-26 02:17:57

标签: java apache-poi

CTTbl cttbl = technologyTable.getCTTbl();
cttbl.getInsList().stream().forEach(System.out::println);

我尝试在Apache POI中使用函数getInsList,但我总是得到这个异常

Exception in thread "main" java.lang.NoClassDefFoundError: org/openxmlformats/schemas/wordprocessingml/x2006/main/impl/CTTblImpl$1InsList
	at org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTTblImpl.getInsList(Unknown Source)
	at com.ocean.Main.getTechnologyList(Main.java:138)
	at com.ocean.Main.main(Main.java:48)
Caused by: java.lang.ClassNotFoundException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTTblImpl$1InsList
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 3 more

我已经在项目中添加了jar文件,包括

  • poi-3.17.jar
  • poi-examples-3.17.jar
  • poi-excelant-3.17.jar
  • poi-ooxml-3.17.jar
  • POI-OOXML-架构 - 3.17.jar
  • POI暂存器-3.17.jar
  • 公地编解码器1.10.jar
  • 公地collections4-4.1.jar

我还错过了什么或我的代码有什么问题?

0 个答案:

没有答案