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

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.


JarFinder suggests XMLBeans.jar

Tags:

Java