users@jaxb.java.net

Re: Using SchemaGen ant task programatically

From: Kirill Grouchnikov <kirillcool_at_yahoo.com>
Date: Mon, 9 Jul 2007 22:03:35 -0700 (PDT)

Isn't that class in tools.jar? If so, then it's not available "automatically" to javac and at runtime - you'll have to add it explicitly to the classpath.

Kirill

----- Original Message ----
From: Sachith Dhanushka <sachith.dhanushka_at_gmail.com>
To: jaxb users <users_at_jaxb.dev.java.net>
Sent: Monday, July 9, 2007 9:48:56 PM
Subject: Using SchemaGen ant task programatically

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







       
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/