使用 Apache Poi 读取 Excel 时出现 ListValuedMap NoClassDefFoundError? [英] ListValuedMap NoClassDefFoundError when Reading Excel using Apache Poi?

查看:101
本文介绍了使用 Apache Poi 读取 Excel 时出现 ListValuedMap NoClassDefFoundError?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在执行程序时,以下是编译器抛出的问题

While Executing the Program, Below are the issues Compiler is throwing

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/collections4/ListValuedMap
at ReadExcel.main(ReadExcel.java:19)
Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.collections4.ListValuedMap
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more

请帮我知道如何解决这个问题提前致谢

Please help me know how to solve this Thanks in advance

推荐答案

如果你添加下面的 jar,你应该会很好.https://mvnrepository.com/artifact/org.apache.commons/commons-collections4/4.1

you should be good if you add the below jar. https://mvnrepository.com/artifact/org.apache.commons/commons-collections4/4.1

这篇关于使用 Apache Poi 读取 Excel 时出现 ListValuedMap NoClassDefFoundError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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