I have to read xls file in java.I used poi-3.6 to read xls file in Eclipse.But i m getting this ERROR\"Exception in thread \"main\" java.lang.NoClassDefFoundError: org/a
I had similar situation in linux env, basically my lib path level was off by 1.
JarFinder suggests XMLBeans.jar
Had the same error on Apache POI 3.16. Added the following jars from Apache POI /ooxml-lib/xmlbeans-2.6.0 and for the next exception regarding collections /lib/commons-collections4-4.1.jar to fix.
You need xmlbeans on your classpath.
NoClassDefFoundError means that:
The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.
So next time you get an exception like this, it means that some 3rd party library requires another 3rd party library. Then use google (or any other means) to find which library this is. Furthermore, most libraries state clearly in their documentations and/or distributions what are their dependencies.