• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

error when building in ecllipse

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
am using ant to build a project and i keep getting this error:

D:\eclipse3.3.1\workspace\online-bill\build.xml:734: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/D:/eclipse3.3.1/workspace/online-bill/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)

i dont know much about 'endorsed directory mechanism ' so not sure what to do. any help would be much appreciated.

thanks in advance.
Posts: 4179
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There isn't a whole lot to say that the link you posted doesn't say.

1) The Endorsed Standards Override is a mechanism to provide newer releases of certain endorsed libraries than those provided by the JRE

2) Any library you are trying to employ using the Endorsed Standards Override must be in a JAR and must be in a directory defined as a source directory for endorsed libraries

3) You can use the java.endorsed.dirs property to define what directories contain endorsed JAR libraries
- java.endorsed.dirs would be an environmental property or could be set using java -Djava.endorsed.dirs="..." ...

4) The default directory is <Java Home>/lib/endorsed

So if you have a JAXB 2.1 JAR, and you don't want to set the java.endorsed.dirs property, copy the JAR file to <Java Home>/lib/endorsed/ which would cause your run time to use the newer version of JAXB rather than the version included with the JRE.

Note, though, that you should double check your Eclipse run time to make sure it does not override the endorsed directory in some way.
Create symphonies in seed and soil. For this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic