java中的运行时错误与apache POI [英] Runtime error in java with apache POI

查看:34
本文介绍了java中的运行时错误与apache POI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误:

java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;
at org.apache.poi.POIXMLDocumentPart.<clinit>(POIXMLDocumentPart.java:56)

来自第 56 行:

public static Workbook wb = new XSSFWorkbook();

我只需要重新链接我的库,但我所做的只是移动所有文件并将构建路径重置为我将文件移动到的位置,并删除了旧文件.

I just had to re-link my library, but all i did was move all the files and reset the build path to where i moved the files to, and removed the old one.

推荐答案

java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;

此声明表示您的罐子不匹配(不兼容).确保您拥有受支持的 jar 版本.

This statement says that you have mismatch(incompatible) of jars. Make sure you have supported version of jars.

这篇关于java中的运行时错误与apache POI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆