Hello developers!
Starting the jaxb compiler with an ant java task works perfectly:
<java classname="com.sun.tools.xjc.Driver"
failonerror="true" fork="true">
<classpath refid="project.class.path"/>
<arg value="-d"/><arg file="${grips.generated}"/>
<arg value="-readOnly"/>
<arg value="-extension"/>
<arg file="${grips.xmlspace}/sys/System.xsd"/>
</java>
If I try to do the same with an xjc task I get an error telling me, that
crimson could not be found (I have no crimson installed)
<taskdef
name="xjc"
classname="com.sun.tools.xjc.XJCTask">
<classpath refid="project.class.path"/>
</taskdef>
<xjc
schema="${grips.xmlspace}/sys/System.xsd"
target="${grips.generated}"
readonly="true"
extension="true"/>
Operating system is Linux I586 with Sun JDK 1.4.1_01
Endorsed classes are installed and in classpath:
<path id="project.class.path">
<pathelement location="${grips.generated}"/>
<pathelement location="${java.jaxb.libs}/jaxb-ri.jar"/>
<pathelement location="${java.jaxb.libs}/jaxb-xjc.jar"/>
<pathelement location="${java.jaxb.libs}/jaxb-libs.jar"/>
<pathelement location="${java.jaxb.libs}/jaxb-api.jar"/>
<pathelement location="${java.jaxb.libs}/endorsed/xercesImpl.jar"/>
<pathelement location="${java.jaxb.libs}/endorsed/xalan.jar"/>
<pathelement location="${java.jaxb.libs}/endorsed/sax.jar"/>
<pathelement location="${java.jaxb.libs}/endorsed/dom.jar"/>
<pathelement location="${java.jwsdp.libs}/jax-qname.jar"/>
<pathelement location="${java.jwsdp.libs}/namespace.jar"/>
</path>
Can anybody guess whats wrong with that? Any help will be appreciated!