0

i have a code to generate word files in Java with IntelliJ idea using docx4j library wich it work great in java 8 but when i did migrate to java 9 or 10 i get

Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

that i can't get rid off i tried adding Moxy to library , class path but still the same exception i looked in this simular problem but didn't work for me docx4j JXABException

Yuuuucef
  • 71
  • 2
  • 11

2 Answers2

0

I expect there is more work to do, but https://github.com/plutext/docx4j/tree/Java9 works in Eclipse Oxygen.3a 4.7.3a with Open JDK 9, at least.

UPDATE 6 May 2018

Deleted the Java 9 branch, since you can use master following https://github.com/plutext/docx4j/commit/0def93434bc9a3efcbbf214247572dc5b9e96616

Fix is in https://www.docx4java.org/docx4j/docx4j-nightly-20180506.jar and will be in v3.3.8 on its release.

JasonPlutext
  • 14,984
  • 3
  • 43
  • 83
0

i did add jxab library jars and its working fine now hope it will not crash jxab jars

Yuuuucef
  • 71
  • 2
  • 11