且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

读取excel文件时Apache POI NoClassDefFoundError

更新时间:2022-04-10 23:10:12

看来您错过了类路径中的 commons-collection4.jar.下载它并将其添加到您的类路径中.如果您使用 maven,则可以添加

It Looks like you miss the commons-collection4.jar in your classpath. Download it and add it to your classpath. If you use maven you can add

<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 -->
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-collections4</artifactId>
    <version>4.1</version>
</dependency>

到你的 pom.

如果没有,您可以在这里下载