users@jaxb.java.net

RE: Re: JAXB & xjc version determination

From: Bhende, Arundhati <Arundhati_Bhende_at_csx.com>
Date: Wed, 16 Mar 2005 18:21:51 -0500

I must be missing something.

When I executed "java -jar jaxb-xjc.jar -version" from the directory where the files exist,

On 2000 with java version "1.3.1_01", I get this error
Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler

On XP with java version "1.4.2_03", I get this error
Exception in thread "main" java.lang.NoClassDefFoundError: org/relaxng/datatype/ValidationContext
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)


For any other jar, both generate the same error

Failed to load Main-Class manifest attribute from
jaxb-libs.jar

What am I missing?

- Arundhati

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

Bhende, Arundhati wrote:
> 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?

>

You have to run the compiler. If you don't have the xjc scripts, then you
can just run "java -jar" like I've shown below:

LORAX [15] [ 4:35PM] [/d/files/ws/jaxb-sources/jaxb-ri/dist/lib] => java -jar jaxb-xjc.jar -version
xjc version "1.0.4-11/12/2004 10:30 AM(ryans)-fcs"
JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build 1.0.4-11/12/2004 10:30 AM(ryans)-fcs)

In this case, I have an old internal build of JAXB 1.0.4.

--Ryan



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