users@jaxb.java.net

RE: Re: JAXB & xjc version determination

From: Bhende, Arundhati <Arundhati_Bhende_at_csx.com>
Date: Wed, 16 Mar 2005 16:33:11 -0500

Thanks.

I am not clear about answer for 2. If I have the jar files that begin with jaxb - like mentioned below, but nothing else in a directory and need to find out which version of JAXB those files come from, how can I use "xjc -version" to determine that?

- Arundhati


 -----Original Message-----
From: Ryan Shoemaker - JavaSoft East [mailto:Ryan.Shoemaker_at_Sun.COM]
Sent: Wednesday, March 16, 2005 4:20 PM
To: users_at_jaxb.dev.java.net
Subject: Re: JAXB & xjc version determination

Bhende, Arundhati wrote:
> I have two questions regarding JAXB
>
> 1. Is there a way to determine which version of JAXB ( xjc ) was used to generate java classes from xsd file, if you don't have that documented anywhere and you have the generated classes - either a command line way or some other utility

Each generated java file should contain a header that specifies the
version of JAXB used to create it. I think we also bake the version
info into the class files in a way that you could programatically
access it, but I'm not sure how off the top of my head. I'd have to
go look...

> 2. Is there a way to find out from a jaxb-libs.jar or jaxb-impl.jar etc, which version of JAXB, those jars come from / belong to?

"xjc -version" should work, if it doesn't, then you are using 1.0 and
should upgrade ;8-)

--Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net