Need help with ANT javac classpath

WebServices Development <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <0B11A18CD17F5F45A861D1D21D9A3073DE3BCDE2@TJAXP80097DAG.csxt.ad.csx.com>
I have an old application which is using JAXB version 1.0.  When I pull in the projects in Eclipse, it compiles fine because it references the jaxb jars from my web-inf/lib.



When I am defining an ANT javac task for it, I get compilation errors because the jaxb classes from rt.jar take preference.  I have not included the jars from JAVA_HOME in my javac task's classpath.



How can I set-up my javac task such that my project will still compile with ANT as it does in Eclipse?



P.S - I tried adding includejavaruntime="false"   and    includeantruntime="false" attributes -  both together as well as individually - to the javac task - but I still get the error.  The error is  -  createBinder() in ObjectFactory cannot override createBinder() in JAXBContext



Because it seems that when compiling in Eclipse, it uses the JAXBContext from the jaxb-api.jar that is part of the project whereas when running ANT javac, it uses the JAXBContext from rt.jar – which gets added to the classpath when running ANT – not part of my classpath parameter to javac.



What do I need to do to get this fixed?


This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.