1. Causes
JAXB API is the API of Java EE, so this jar package is no longer included in Java se 9.0 and above. Java 9 introduces the concept of module. By default, Java se will no longer contain the jar package of Java EE. However, in Java 6/7/8, the API is bundled together
2. Solutions
2.1 direct download
javax.activation-1.2.0.jar
jaxb-api-2.3.0.jar
jaxb-core-2.3.0.jar
jaxb-impl-2.3.0.jar
2.2 Maven
<!-- Java 6 = JAX-B Version 2.0 -->
<!-- Java 7 = JAX-B Version 2.2.3 -->
<!-- Java 8 = JAX-B Version 2.2.8 -->
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
Similar Posts:
- IDEA error: javax/xml/bind/DatatypeConverter [How to Solve]
- [Solved] Java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
- [Solved] Java.lang.ClassNotFoundException: javax.xml.bind.JAXBException (i)
- [Solved] Eclipse Run Java Error: NoClassDefFoundError: javax/xml/bind/*
- [How to Solve Maven Error] invalid LOC header (bad signature)
- Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots)
- [Solved] SparkSQL Error: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism
- [Solved] JSTL1.2 Error: org.apache.catalina.core.StandardWrapperValve.invoke…
- [Solved] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
- [Solved] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.