Issues upgrading to v8.2.3
Posted: Tue Nov 03, 2020 6:24 am
I am trying to upgrade from docx4j v3.3.6 to v8.2.3 and am encountering compiler errors. Specifically, the following classes can no longer be found.
import org.docx4j.relationships.Relationship;
import org.docx4j.wml.BooleanDefaultTrue;
import org.docx4j.wml.FooterReference;
import org.docx4j.wml.Ftr;
import org.docx4j.wml.Hdr;
import org.docx4j.wml.HdrFtrRef;
import org.docx4j.wml.HeaderReference;
import org.docx4j.wml.ObjectFactory;
import org.docx4j.wml.SectPr;
import org.docx4j.wml.SectPr.PgMar;
import org.docx4j.wml.SectPr.PgSz;
I have added these jars to the build path and intend to deploy them:
docx4j-core-8.2.3.jar
docx4j-JAXB-Internal-8.2.3.jar
all 23 jars in the docx4j-community-8.2.3\dependencies folder
In my eclipse project I also have these jars on the build path but do not deploy them:
javax.activation-1.2.0.jar
jaxb-api-2.3.0.jar
jaxb-core-2.3.0.jar
jaxb-impl-2.3.0.jar
I can't find any hints by searching. It's been quite a while since the project was setup for earlier versions, so I'm currently unsure about the best way to compile and deploy with jaxb. Any help would be greatly appreciated.
import org.docx4j.relationships.Relationship;
import org.docx4j.wml.BooleanDefaultTrue;
import org.docx4j.wml.FooterReference;
import org.docx4j.wml.Ftr;
import org.docx4j.wml.Hdr;
import org.docx4j.wml.HdrFtrRef;
import org.docx4j.wml.HeaderReference;
import org.docx4j.wml.ObjectFactory;
import org.docx4j.wml.SectPr;
import org.docx4j.wml.SectPr.PgMar;
import org.docx4j.wml.SectPr.PgSz;
I have added these jars to the build path and intend to deploy them:
docx4j-core-8.2.3.jar
docx4j-JAXB-Internal-8.2.3.jar
all 23 jars in the docx4j-community-8.2.3\dependencies folder
In my eclipse project I also have these jars on the build path but do not deploy them:
javax.activation-1.2.0.jar
jaxb-api-2.3.0.jar
jaxb-core-2.3.0.jar
jaxb-impl-2.3.0.jar
I can't find any hints by searching. It's been quite a while since the project was setup for earlier versions, so I'm currently unsure about the best way to compile and deploy with jaxb. Any help would be greatly appreciated.