I'm trying to open a file whith extension .docx.
i'm doing like this:
- Code: Select all
public class DocxTest {
public static void main(String[] args) {
WordprocessingMLPackage wordMLPackage;
try {
wordMLPackage = WordprocessingMLPackage.load(new java.io.File("C:\\modelo.docx"));
} catch (Docx4JException e) {
e.printStackTrace();
}
}
}
but i'm receiving that error:
JJAXB: RI not present. Trying Java 6 implementation.
JAXB: Using Java 6 implementation.
log4j:WARN No appenders could be found for logger (org.docx4j.openpackaging.contenttype.ContentTypeManager).
log4j:WARN Please initialize the ...