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

前端 未结 4 1657
无人共我
无人共我 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 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.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题