Page 1 of 1

Dependencies outdated?

PostPosted: Thu Jul 13, 2017 3:03 am
by churt
Hi,
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

Re: Dependencies outdated?

PostPosted: Thu Jul 13, 2017 7:35 pm
by jason
The list in Getting Started is a bit out of date, sorry about that.

A more up to date list is https://github.com/plutext/docx4j/blob/ ... ld.xml#L27

The actual list can be generated at any time using mvn dependency:tree

The jars themselves may be found at https://www.docx4java.org/docx4j/docx4j ... endencies/ or in the zip file at https://www.docx4java.org/docx4j/

Regarding avalon, it is used in the font stuff.

Re: Dependencies outdated?

PostPosted: Thu Jul 13, 2017 8:11 pm
by churt
ohh, the dependencies would have been in the zip I downloaded... well, next time I should take a better look if want to save an hour or two.

After including all dependencies from the docx4j-community-3.3.5.zip, googles BiMap was not required anymore.

Thanks,
Kurt