Eclipse Mars : The configured runtime is insufficient to provide an implementation for JAXB2.2
Asked Answered
H

6

14

Eclipse version : Mars. JDK 1.8.

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

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

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

Hammock answered 17/9, 2015 at 20:33 Comment(0)
S
28

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.)
Suffragette answered 15/6, 2017 at 21:23 Comment(2)
I faced the similar problem in the Eclipse oxygen, adding as per above steps cleared the problem and we can able to create a new jaxb project.Basis
"zip file is empty" after downloading the library...Delphinus
C
7

This is an issue with JDK8 in Eclipse, when you try creating a Generic JAXB2.2 project.

For fixing the issue in Eclipse Mars, do the following: While creating the project, select your Target Runtime as JDK7 and that will fix it. I have tried it myself, and it has worked fine!

If you want to continue to use JDK8, in the last screen of project creation, in JAXB implementation type, select "Disable Library Configuration" instead of JRE. This will remove the error and let you create the project. But I would suggest don't go for this as this may introduce more error in the future.

To use JDK8 in Eclipse Luna, a patch has been published to fix this issue. You can check it here: configure Generic JAXB 2.2 Platform with Java 1.8. I haven't tried it myself, but from the comments it seems the issue is resolved.

Chalcedony answered 25/10, 2015 at 14:50 Comment(2)
How can I download this hotfix?Latinalatinate
Same thing happens for JAXB 2.1 version with JDK8 in eclipse.Longtin
H
5

I solved it like this (Eclipse Oxygen with jdk8):

  1. File/New/Project/JAXB/JAXB Project
  2. Next
  3. Give the name of the project
  4. Target Runtime: jdk8
  5. JAXB version: 2.2
  6. Next, Next
  7. Platform: Generic JAXB 2.2.
  8. JAXB Implementation Type: Disable Library Configuration.
  9. Finish.

This works.

Havenot answered 13/1, 2018 at 21:1 Comment(0)
P
4

Here is what that worked for me (Eclipse Luna Service Release 2 (4.4.2)). In the third screen "JaxB Facet", in the JaxB Project wizard, select "User Library" as JaxB Implementation. Then click on "Manage Libraries" to create a new library with rt.jar from jdk/jre/lib folder. Now there is no error message, and the "Finish" button in the wizard is now active !

Pomade answered 23/3, 2016 at 6:43 Comment(2)
what do u mean by "in the third screen"?Dealfish
You solution did not fully work as I am presented with the following message now: "The class 'javax.xml.bind.JAXBPermission'. Any idea how to progress from that? I am using JDK 8 and Eclipse Neon. Thank youCrazyweed
D
0

This is related to jdk version problem. I faced same error just we need to change jdk version from jdk1.8 to jdk1.7, to do this follow below steps... open eclipse-->select run--->Run Configrations..-->double click on java application--->select JRE--->select radio button Altenate JRE then click on installed JRE's ---> now you can remove jdk1.8 and add jdk1.7

enter image description here

Dilative answered 30/9, 2016 at 12:20 Comment(0)
A
0

I am working on a dynamic web project. I modified facet project. Changed Platform to EclipseLink 2.2.x and downloaded EclipseLink 2.2.1 and it worked fine.

Adulterine answered 24/4, 2021 at 2:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.