Building my project with Gradle. Build succeeds for Java8, but fails for Java9 with the
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
Googling points to threads that seem to give answer for exactly this problem:
The solution is to add dependencies. But doing this does not solve the problem for me. Still getting the same error.
Also I am not sure to which dependencies section to add new dependancies. The exception happens in gradle, so it seems logical to add at buildscript->dependencies section. But this section only accepts classpath and not implementation as the above soultions suggest