As Java not yet removed from module from java 9. Java has only deprecated and does not add javax.xml.bind module on classpath by default.So if we want to add javax.xml.bind on classpath we can add using following command:
--add-modules java.xml.bind
We can use Maven and Gradle to include javax.xml.bind in our project.
Maven :
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
Gradle:
compile 'javax.xml.bind:jaxb-api:2.3.0'