I tried to use docx4j 3.3.5 in a NetBeans Plattform app. Since I do not know how to use Maven, I included the .jar files of most of the dependencies listed in the Docx4j_GettingStarted.pdf that comes in the zip folder (as Library Wrapper Module). When I opened a Word document, an error message told me, that com.google.common.collect.BiMap is missing. After adding this .jar file (without knowing what this framework does), the Word document seems to open fine with docx4j.
So did I make a mistake that BiMap was required, or is the list of dependencies below out-dated?
+- org.slf4j:slf4j-api:jar:1.7.5
+- org.plutext:jaxb-xmldsig-core:jar:1.0.0
+- commons-lang:commons-lang:jar:2.4
+- commons-codec:commons-codec:jar:1.3
+- commons-io:commons-io:jar:1.3.1
+- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.5
| \- commons-logging:commons-logging:jar:1.0.4
+- org.apache.xmlgraphics:fop:jar:1.1
+- org.plutext:jaxb-xslfo:jar:1.0.1
+- org.apache.avalon.framework:avalon-framework-api:jar:4.3.1
+- org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1
+- xalan:xalan:jar:2.7.1
| \- xalan:serializer:jar:2.7.1
+- org.plutext:jaxb-svg11:jar:1.0.2
+- net.arnx:wmf2svg:jar:0.9.0
+- org.antlr:antlr-runtime:jar:3.3
+- org.antlr:stringtemplate:jar:3.2.1
| \- antlr:antlr:jar:2.7.7
Talking about out-dated: The org.apache.avalon.framework has been closed (in 2004?). Is it indeed required? I did not include it, yet docx4j could at least open the document? The latest avalon-framework version I could find (link) is 4.1.5 as opposed to 4.3.1 given in the dependencies.
Thanks,
Kurt