java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlObject错误解决方法
深山老妖浏览:9772019-04-03 14:19:56本文累计收益:0我也要赚钱

使用POI操作Excel,一直报如下错误java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlObject

是因为项目中缺少一个包xmlbeans-2.3.0.jar,加上后就可以正常操作了。

下载poi jar包里面有xmlbeans-2.3.0.jar

点这里下载:poi 3.8/3.9/3.10三个版本下载
poi 3.17最新版本下载

或者单独下载xmlbeans-2.3.0.jar :点击下载  记得把xmlbeans-2.3.0.jar.zip文件的后缀.zip去掉

官方下载地址:http://xmlbeans.apache.org  

导入jar包后还不好用。试着操作:点击项目右键->Properties->Deployment Assembly->Maven Dependencies

->add->Java Build Path Entries->选择xmlbeans-2.3.0.jar->Apply OK

评论列表
发表评论
+ 关注