Hello,

I would like to read an .xlsx but i have this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xmlbeans/XmlException
        at Extraction.main(Extraction.java:135)
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

When i do this:
InputStream ist = new FileInputStream("Projection_2012_Eq2.xlsx"); //pour
ouvrir les fichiers xlsx de 2007
                                *XSSFWorkbook wb2 = new XSSFWorkbook(ist);*     
                        // il faut définir la
feuille qui sera alimenté
                                //si 
                                XSSFSheet sheet2 = wb2.getSheetAt(0);
                                XSSFRow row2 = null;
                                XSSFCell cell2 = null;
                                //int n = 0;
                                //int i = 0;//compte le nombre d'agent
                                
                                String prenom_proj;
                                Collator usCollator;
                                for (Iterator rowIt = sheet2.rowIterator(); 
rowIt.hasNext();){//boucle
de parcours du fichier de ligne en ligne

The bold ligne is the 135 ligne's.

Why i had this error ?
How to read a '.xlsx' file ?

Thanks

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/java-lang-NoClassDefFoundError-org-apache-xmlbeans-XmlException-tp5501612p5501612.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]

Reply via email to