When I just change the jar file, everything compiles and runs okay, but when I try to open the resulting docx files in Word 2007 it complains that the files are corrupt. The exact message is:
The file part1.docx cannot be opened because there are problems with the contents.
Details: The file is corrupt and cannot ...