vamshi
vamshi

Reputation: 31

ListValuedMap NoClassDefFoundError when Reading Excel using Apache Poi?

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

Upvotes: 0

Views: 26330

Answers (2)

kattoor
kattoor

Reputation: 195

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

Upvotes: 2

Jason J
Jason J

Reputation: 11

You are missing some required class maybe check your version on pom.xml if you are using eclipse you can do cnt shift T and see if you can open the missing class (ListValuedMap)file and see if it comes from the same jar as you specified in your pom.

Upvotes: 0

Related Questions