Using java Syntax Highlighting
private WordprocessingMLPackage dokument = new WordprocessingMLPackage();
public DocxReader(String fileName) {
try {
dokument = WordprocessingMLPackage.load(new File(String fileName));
stylyDokumentu = dokument.getMainDocumentPart().getStyleDefinitionsPart().getJaxbElement();
} catch (Docx4JException ex) {
System.out.println("ERR");
// Logger.getLogger(DocxReader.class.getName()).log(Level.SEVERE, null, ex);
}
}
public DocxReader(String fileName) {
try {
dokument = WordprocessingMLPackage.load(new File(String fileName));
stylyDokumentu = dokument.getMainDocumentPart().getStyleDefinitionsPart().getJaxbElement();
} catch (Docx4JException ex) {
System.out.println("ERR");
// Logger.getLogger(DocxReader.class.getName()).log(Level.SEVERE, null, ex);
}
}
Parsed in 0.016 seconds, using GeSHi 1.0.8.4
>> >> >> Exception in thread "AWT-EventQueue-0"
>> >> java.lang.NoClassDefFoundError:
>> >> >> org/apache/xmlgraphics/image/loader/ImageContext
>> >> >> at