Bug 49042 - an error preventing from constructing an XSSFworkbook in the eclipse environment
Summary: an error preventing from constructing an XSSFworkbook in the eclipse environment
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.6-FINAL
Hardware: PC Windows XP
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2010-04-03 23:36 UTC by tal
Modified: 2010-04-06 09:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description tal 2010-04-03 23:36:46 UTC
the problem is as such.

i've imported  the right packages sufficient to construct an XSSFworkbook object.

i added the right jars in eclipse so it will be able to load these imports:
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.*;

but then when i do the following:
	    Workbook wb = new XSSFWorkbook();
	    FileOutputStream fileOut = new FileOutputStream("workbook123.xlsx");

it is able to run smooth from the eclips point of view
however in the runtime i get this error:

	at POIWrite.main(POIWrite.java:13)
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)
	... 1 more

i thought it was a problem of package loading
but i saw two other dudes who ran into this exact error, all of them in eclipse.


btw with HSSFworkbook things run smooth as smooth can get.

anyway, i hope this but will be fixed next version cause eclipse is my favorite environment for java.
Comment 1 Nick Burch 2010-04-06 09:42:23 UTC
You need to import all the dependencies too. They're all in the binary download, and listed in