diff options
author | Nick Burch <nick@apache.org> | 2010-06-02 11:30:13 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2010-06-02 11:30:13 +0000 |
commit | fe3cb0b4e35b515b3767a4b291a2198b9efbf232 (patch) | |
tree | b26504db7705bbe4e9e96f60e6b1b96fda9c6714 | |
parent | 4a10622c7f4bfc9c0f7595434b3144fe654220f4 (diff) | |
download | poi-fe3cb0b4e35b515b3767a4b291a2198b9efbf232.tar.gz poi-fe3cb0b4e35b515b3767a4b291a2198b9efbf232.zip |
Update the FAQ with a note about poi-ooxml-schemas vs the full ooxml-schemas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@950499 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/documentation/content/xdocs/faq.xml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index 87ed8c990b..829caa5f27 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -53,6 +53,45 @@ System.out.println("Core POI came from " + path); </faq> <faq> <question> + I'm using the poi-ooxml-schemas jar, but my code is failing with "java.lang.NoClassDefFoundError: org/openxmlformats/schemas/*something*" + </question> + <answer> + <p>To use the new OOXML file formats, POI requires a jar containing + the file format XSDs, as compiled by + <link href="http://xmlbeans.apache.org/">XMLBeans</link>. These + XSDs, once compiled into Java classes, live in the + <em>org.openxmlformats.schemas</em> namespace.</p> + <p>There are two jar files available, as described in + <link href="/overview.html">the components overview section</link>. + The <em>full jar of all of the schemas is ooxml-schemas-1.0.jar</em>, + and it is currently around 15mb. The <em>smaller poi-ooxml-schemas + jar</em> is only about 4mb. This latter jar file only contains the + typically used parts though.</p> + <p>Many users choose to use the smaller poi-ooxml-schemas jar to save + space. However, the poi-ooxml-schemas jar only contains the XSDs and + classes that are typically used, as identified by the unit tests. + Every so often, you may try to use part of the file format which + isn't included in the minimal poi-ooxml-schemas jar. In this case, + you should switch to the full ooxml-schemas-1.0.jar. Longer term, + you may also wish to submit a new unit test which uses the extra + parts of the XSDs, so that a future poi-ooxml-schemas jar will + include them.</p> + <p>There are a number of ways to get the full ooxml-schemas-1.0.jar. + If you are a maven user, see the + <link href="/overview.html">the components overview section</link> + for the artifact details to have maven download it for you. + If you download the source release of POI, and/or checkout the + source code from <link href="/subversion.html">subversion</link>, + then you can run the ant task "compile-ooxml-xsds" to have the + OOXML schemas downloaded and compiled for you (This will also + give you the XMLBeans generated source code, in case you wish to + look at this). Finally, you can download the jar by hand from the + <link href="http://www.ibiblio.org/maven/org.apache.poi/jars/">POI + Maven Repository</link>.</p> + </answer> + </faq> + <faq> + <question> Why is reading a simple sheet taking so long? </question> <answer> |