Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException

前端 未结 4 1646
无人共我
无人共我 2021-02-19 02:20

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

相关标签:
4条回答
  • 2021-02-19 02:51

    I had similar situation in linux env, basically my lib path level was off by 1.

    0 讨论(0)
  • 2021-02-19 02:52

    JarFinder suggests XMLBeans.jar

    0 讨论(0)
  • 2021-02-19 02:56

    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.

    0 讨论(0)
  • 2021-02-19 03:05

    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.

    0 讨论(0)
提交回复
热议问题