If you are trying to work with the newer xml based file format - Excel 2007 on - then you will need to reference additional java archives on your classpath. Look for archives with names similar to these in the version of POI that you have;
poi-3.6-beta1-20091007.jar poi-oxml-3.6-beta1-20091007.jar openxml4j-1.0-beta.jar xmlbeans-2.3.0.jar ooxml-schemas-1.0.jar dom4j-1.6.1.jar To reiterate, you will need to locate the files you have downloaded with names most closely matching the examples I have given and add those onto your classpath. Yours Mark B PS Some classes will not show compile time errors as they are only required at runtime. Amadeo Asco wrote: > > I have started using you library and would like to subscribe to the user > Mailing List. > > > > I have installed the libraries and run it, nice an easy to use. But it > fails > when trying to save into the file. The problem is a missing class: > > SEVERE: org/openxmlformats/schemas/spreadsheetml/x2006/main/CTDxfs$1 > > java.lang.NoClassDefFoundError: > org/openxmlformats/schemas/spreadsheetml/x2006/main/CTDxfs$1 > > at > org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs.<clinit>(Unknown > Source) > > at > org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs$Factory.newInstan > ce(Unknown Source) > > at > org.apache.poi.xssf.model.StylesTable.writeTo(StylesTable.java:362) > > at > org.apache.poi.xssf.model.StylesTable.commit(StylesTable.java:377) > > at > org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:177) > > at > org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:181) > > at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:214) > > at com.aas.phd.xsl.XSLMain.main(XSLMain.java:87) > > Caused by: java.lang.ClassNotFoundException: > org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs$1 > > 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) > > ... 8 more > > > > > > I have looked into the different jar files and I could not find > "org/openxmlformats/schemas/spreadsheetml/x2006/main/CTDxfs$1". Please > could > anyone help? I will submit my question to the Mailing list as soon as I am > subscribed. > > > > > -- View this message in context: http://old.nabble.com/Class-Not-found-in-version-3.6-20091214-tp28069085p28069877.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]
