Building the project gave me java.lang.LinkageError: JAXB 2.1 API loaded from bootstrap bootloader

When creating a project, I get the following error:

java.lang.LinkageError : JAXB 2.1 API is loaded from bootstrap bootloader, but this RI (from jar: file: / C: / Documents and Settings / ind / .m2 / repository / com / sun / xml / bind / jaxb-impl / 2.2.4-1 / jaxb-impl-2.2.4-1.jar! /Com/sun/xml/bind/v2/model/impl/ModelBuilder.class) requires 2.2 API. Use the approved directory mechanism to put jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.6.0/docs/guide/standards/ )

Please answer asp.

+4
source share
1 answer

The JAXB 2.1 implementation is included in Java SE 6, and the JAXB 2.2 implementation is included in Java SE 7. If you do not have a requirement to do this, I would recommend using a JAXB implementation that matches the JAXB APIs in your version of Java.

0
source

All Articles