Hi Jason,
You're picking up an incompatible xercesImpl.jar. Try this from the
shell in which you're running ant:
set CLASSPATH=
set ANT_HOME=%JAXB_HOME%
%JAXB_HOME%\bin\ant
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
Jason Tang wrote:
> Hi,
>
> when I tried to ant compile the sample 1, I got the following error...
> Compiling file:/C:/jaxb-1.0-beta/examples/users-guide/SampleApp1/po.xsd
> java.lang.IllegalAccessError: tried to access method org.apache.xerces.util.ObjectFactory.findClassLoader()Ljava/lang/ClassLoader; from class org.apache.xerces.parsers.XMLGrammarPreparser
>
> but I have no problem compiling in command prompt.
>
> any idea?
>
> Thanks