users@jaxb.java.net

Using JAXB 2.2 with JavaSE 6

From: Gary Gregory <GGregory_at_seagullsoftware.com>
Date: Thu, 17 Dec 2009 19:49:03 -0500

Hi All:

On this page:

https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html

I read:

"Use the system property java.endorsed.dirs when you launch your application, and have it point to the directory that contains the 2.1/2.2 jaxb-api.jar. This allows you use use JAXB 2.1/2.2 without modifying the JRE. Make sure not to include any other JAXB RI jar files (such as jsr173-api.jar or jaxb-impl.jar.)"

I like to make sure I get this exactly right. I will put the single JAXB file jaxb-api.jar in the directory pointed to by java.endorsed.dirs.

What about the other JAXB jar files? Can they be on the plain old classpath?

WRT jsr173-api.jar, since the API is in JavaSE 6, can I ignored it altogether and not distribute it?

Thank you,

Gary Gregory
Seagull Software
ggregory_at_seagullsoftware.com
www.seagullsoftware.com