Home  >  Forum  >  Core Java
Post New Query

ClassNotFoundException: org.openxmlformats.schemas.spreadsheetml


joined on
April 01,2014
Asked on April 22,2014
Exception in thread "main" java.lang.NoClassDefFoundError: org/openxmlformats/schemas/spreadsheetml/x2006/main/CTSheet
at com.test.TestXLSX.main(TestXLSX.java:19)
Caused by: java.lang.ClassNotFoundException: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheet
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

I am working on updating XLSX sheet and got the above error. How to resolve it?
joined on
October 10,2013
Replied on April 22,2014

You are missing poi-ooxml-schemas-3.10-FINAL.jar
joined on
October 10,2013
Replied on April 22,2014

You can set pom.xml as below.

  <dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml-schemas</artifactId>
    <version>3.10-FINAL</version>
  </dependency>

Write Answer



Sitewide-Feb4of4234x60





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