users@jaxb.java.net

[newbie] XJCTask

From: David McCormick <dmccormick_at_triad.rr.com>
Date: Fri, 18 Apr 2003 08:31:33 -0600

Forgive me if this seems too obvious, but I couldn't find an answer in the docs or this list's archive, so at the risk of looking ridiculous,

I've downloaded JWSDP1.1 and have tried to get the first two samples working. When I try xjc.bat or the ant task I get a ClassNotFoundException on com.sun.tools.xjc.XJCTask. I saw that com.sun.tools.xjc.Driver is the main class in the jaxb-xjc.jar and I can run java -jar jaxb-xjc.jar po.xsd -p primer.po to generate the Java files. Just for kicks, I changed the listing in the Ant build file from com.sun.tools.xjc.XJCTask to com.sun.tools.xjc.Driver and reran the build. Ant prints out a "No public execute() in class com.sun.tools.xjc.Driver" so it's found the jar but not com.sun.tools.xjc.XJCTask within the jar.

Can anybody point out what I've missed here?

Thanks,

David