0

I have a code to generate word files in Java with IntelliJ idea using docx4j library which 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 similar problem but didn't work for me docx4j JXABException

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
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
  • 15,352
  • 4
  • 44
  • 84
0

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

Yuuuucef
  • 71
  • 2
  • 11