0
我想用java读取大型Excel文件(.xlsx)。 Apache有一个例子,如何去这个here。 所以我只是复制了整个班级,添加路径到我的.xlsx文件,并试图执行它,但我得到这个错误:实施XSSF示例时出错
Error:(96, 69) java: cannot access org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst
class file for org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst not found
此错误是引发该行的方法endElement()
:
lastContents = new XSSFRichTextString(sst.getEntryAt(idx)).toString();
我用这种依赖对Maven:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.9</version>
</dependency>
如何解决这个问题?
你尝试阅读[Apache的POI常见问题解答关于这一主题(http://poi.apache.org/faq.html#faq-N10025)? – Gagravarr 2015-03-19 16:30:17