Eclipse Mars:配置的运行时不足以提供 JAXB2.2 的实现

2022-01-19 00:00:00 java-8 eclipse jaxb eclipse-mars

Eclipse 版本:火星.JDK 1.8.

Eclipse version : Mars. JDK 1.8.

我想创建一个 JAXB 项目.在 JAXB Facet 页面中,出现如下错误:

I want to create a JAXB project. In the JAXB Facet page, there is the following error:

配置的运行时不足以提供 JAXB2.2 的实现

The configured runtime is insufficient to provide an implementation for JAXB2.2

你能给我一些关于如何解决它的建议吗?

Could you give me some suggestions on how I can fix it?

推荐答案

我遇到了同样的问题.以下修复对我有用.

I faced the same problem. Below fix worked for me.

     1) Select File->New ->Project
     2) Choose JAXB Project from JAXB and click Next
     3) Give Project Name and click Next
     4) On the next window, just Click Next
     5) On the next window (titled JAXB Facets), Choose "User Library" for JAXB implementation. 
        Click "Download Library.." picture and choose EclipseLink 2.5.2 
        (or the higher version shown in the window) and click Next
        This will install the library (make sure your are connected to internet.)

相关文章