On Feb 21, 2012, at 5:28 AM, mouss4rs wrote: > I have all .jar of poi in my build path: > > poi-3.7-20101029.jar > poi-examples-3.7-20101029.jar > poi-ooxml-3.7-20101029.jar > poi-ooxml-schemas-3.7-20101029.jar
You need the full ooxml-schemas-1.1.jar instead of poi-ooxml-schemas See http://poi.apache.org/faq.html#faq-N10025 Regards, Dave > poi-scratchpad-3.7-20101029.jar > xmlbeans-2.3.0.jar > geronimo-stax-api_1.0_spec-1.0.jar > dom4j-1.6.1.jar > commons-logging-1.1.jar > junit-3.8.1.jar > log4j-1.2.13.jar > > So, when i run my program, i have this error message: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/xmlbeans/XmlException > at Extraction.main(Extraction.java:148) > Caused by: java.lang.ClassNotFoundException: > org.apache.xmlbeans.XmlException > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) > ... 1 more > > The error comes of (in bold): > InputStream ist = new FileInputStream("Projection_2012_Eq2.xlsx"); //pour > ouvrir les fichiers xlsx de 2007 > *XSSFWorkbook wb2 = new XSSFWorkbook(ist);* > XSSFSheet sheet2 = > wb2.getSheetAt(0); > nbfeuille= wb2.getNumberOfSheets();//retourne > le nombre de feuille > renseigné > > XSSFRow row2 = null; > XSSFCell cell2 = null; > > > > > -- > View this message in context: > http://apache-poi.1045710.n5.nabble.com/java-lang-NoClassDefFoundError-org-apache-xmlbeans-XmlException-tp5501612p5502179.html > Sent from the POI - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
