Hi Jason,
I try docx4j first with Maven, but it failed, then try to set it manually, in Eclipse 4.4, versions:
docx4J 3.2.2
log4j-1.2.17
slf4j-1.7.5
jaxb-ri-2.2.11
eclipselink-2.6.0.v20150309-bf26070
(All Jars copied to a dir and add it to the classpath of my project,
if you have a link for a detailed description, it would be great)
I made a 'jaxb.properties' with the following content:
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory
My 'Hello word!' type code is:
try {
WordprocessingMLPackage wordMLPackage;
wordMLPackage = WordprocessingMLPackage.createPackage();
wordMLPackage.getMainDocumentPart().addParagraphOfText("Hello Word!");
wordMLPackage.save(new java.io.File("src/HelloWord.docx"));
} catch (Docx4JException e) {
e.printStackTrace();
}
All compile and runtime bug done, but I can not open the writen docx file with Office 2007 ('file is not complate').
The file and the log is in the attachment.
Now I see it is an announcement, excuse me, please move it to the topic section or offer a forum, if you do not treat problems like this.
Regards,
Imre