poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mouss4rs <oukna.musta...@gmail.com>
Subject java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
Date Tue, 21 Feb 2012 08:56:22 GMT

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

Exception in thread "main" java.lang.NoClassDefFoundError:
	at Extraction.main(Extraction.java:135)
Caused by: java.lang.ClassNotFoundException:
	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é
				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 ?


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: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message