users@jaxb.java.net

Using SchemaGen ant task programatically

From: Sachith Dhanushka <sachith.dhanushka_at_gmail.com>
Date: Tue, 10 Jul 2007 00:48:56 -0400

Hi,

I need to programatically
generate a schema from JAXB2 generated set of classes. I was trying to
use SchemaGen ant task, but when I was trying to instantiate it, it
complains
java.lang.NoClassDefFoundError:
com/sun/mirror/apt/AnnotationProcessorFactory.
My project is in jdk1.5 and I also have jaxb-xjc.jar in my classpath. When I
google for the above class, it seems that should be within JDK1.5 itself.
Can some one please help me to fix this problem?

Thanks,
SD