jxls官方案例2.30一直报错,类找不到!!!!!!!!

273360 发布于 2016/09/01 17:59
阅读 945
收藏 0
INFO org.jxls.demo.guide.ObjectCollectionDemo - Running Object Collection demo
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.jxls.util.TransformerFactory.loadPoiTransformer(TransformerFactory.java:85)
at org.jxls.util.TransformerFactory.getTransformerClass(TransformerFactory.java:69)
at org.jxls.util.TransformerFactory.createTransformer(TransformerFactory.java:27)
at org.jxls.util.JxlsHelper.createTransformer(JxlsHelper.java:202)
at org.jxls.util.JxlsHelper.processTemplate(JxlsHelper.java:93)
at org.jxls.demo.guide.ObjectCollectionDemo.main(ObjectCollectionDemo.java:32)
at org.jxls.demo.MainDemo.main(MainDemo.java:20)
Caused by: java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.Workbook
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 9 more

加载中
0
一脸茫然
一脸茫然
jar包版本问题吧
0
ldg_2
ldg_2

如果使用poi的话,需要至少3.14版本,坑很多,摸索了很久才搞定

返回顶部
顶部