The accepted answer to both the above question and this one How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException conclude that for Java 9+ you should use: org.glassfish.jaxb:jaxb-runtime
EDIT
And if I also try to implement jakarta.xml.bind-api/2.33 and org.glassfish.jaxb/jaxb-runtime/2.33 as dependencies in my project/binding, I get build errors related to Classes found in the wrong directory:
This library is the reference implementation of the JAXB API which is defined in org.glassfish.jaxb:jaxb-core. When you are using a build tool like Maven jaxb-core will be resolved transitively through jaxb-runtime.Additionally, the jaxb-runtime library does also contain a Java Service Loader descriptor defining this reference implementation as JAXB provider.The libraries with the groupId com.sun.xml.bind are only published for legacy purposes and should not be used.
The default JAXB runtime does not collect and propagate SAX Locator information, which means that the org.dmg.pmml.PMMLObject#locator field is left uninitialized. If the Java application (eg. the unmarshalling demo application) is interested in this information, then it needs to declare the org.glassfish.jaxb:jaxb-runtime library as a run-time dependency:
However, now and in the future, the org.glassfish.jaxb:jaxb-runtime library has become a required run-time dependency. If missing, then any attempt to make use of some JAXB class or interface shall fail with the following java.lang.ClassNotFoundException: