Home  >  Forum  >  Core Java
Post New Query

java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException


joined on
April 01,2014
Asked on April 22,2014
While using POI API, i am getting below error. How to resolve it. I am new to POI.

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
at com.test.TestXLSX.main(TestXLSX.java:19)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

joined on
October 10,2013
Replied on April 22,2014

downlaod xmlbeans-2.6.0.jar or set POM as below

<dependency>
    <groupId>org.apache.xmlbeans</groupId>
    <artifactId>xmlbeans</artifactId>
    <version>2.6.0</version>
  </dependency>


joined on
April 01,2014
Replied on April 22,2014

Ok. I will do it.

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us