开发者

Jaxb project in eclipse indigo

When I create a jaxb project in eclipse indigo, it tells me "The currently selected JAXB library provider is invalid" which is ecli开发者_JS百科pselink2.3.0-Indigo I tried the javanet download jars with no success. i can though try the examples in the demo described here: http://wiki.eclipse.org/EclipseLink/Examples/MOXy/GettingStarted with the exception of the part on MOXy customization. No error when i run, it just does not seem to be doing anything.

What am i missing. Thanks in advance. Kamal


Background Info

The Eclipse Indigo release offers some new JAXB tooling from the Dali project (which is part of Web Tools Platform). You are now able to create a JAXB Project.

Configuration

A JAXB project can be configured to use the reference or EclipseLink MOXy implementation of JAXB. This can be done via:

  1. Right click your JAXB Project
  2. Select Properties
  3. Select Project Facets
  4. Check the JAXB facet (If you are using Java SE 6 set the JAXB version to 2.1, if you are using Java SE 7 then set the JAXB version to 2.2).
  5. Click the "Further configuration required" or "Further configuration available" links.

Using the JAXB RI

  • Choose Generic JAXB as your platform
  • Choose JRE as your JAXB Implementation Type

Using EclipseLink JAXB (MOXy)

  • Choose EclipseLink JAXB as your platform
  • Choose User Library as your JAXB Implementation
  • Click the Manage Libraries... icon
  • Add a new User Library for EclipseLink (the binary can be obtained from http://www.eclipse.org/eclipselink/downloads/).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜