Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ANT Script Fails in and only in Eclipse
ANT Script Fails in and only in Eclipse [message #114784] Fri, 07 November 2003 11:50 Go to next message
Eclipse UserFriend
ANT script fails when run from Eclipse ANT view window. The same ANT script
runs without incident from the command line. The xercesImpl.jar is part of
the project library path but then the ANT script has its own classpath so
that is a moot point. Any ideas?

[javac] Compiling 127 source files to
\workspace\apps\framework\build\tmp\class
[javac] C:\workspace\apps\framework\src\framework\Executive.java:13: package
org.apache.xerces.parsers does not exist

[javac] import org.apache.xerces.parsers.DOMParser;
Re: ANT Script Fails in and only in Eclipse [message #115098 is a reply to message #114784] Fri, 07 November 2003 20:50 Go to previous messageGo to next message
Eclipse UserFriend
http://www.10xsoftware.com/products/jewelbox_guides/samples/ ant/win2k/Integr
ating%20Ant%20with%20Eclipse%20for%20Windows.html
Re: ANT Script Fails in and only in Eclipse [message #115111 is a reply to message #115098] Fri, 07 November 2003 20:51 Go to previous message
Eclipse UserFriend
Glue these lines together to get the link
http://www.10xsoftware.com/products/jewelbox_guides/samples/ ant/win2k/Integr
ating%20Ant%20with%20Eclipse%20for%20Windows.html

Option 1: Set Eclipse Ant Classpath:

The first option to running Ant in the same VM removes the Ant JAR files
from the default Ant configuration inside Eclipse and adds Ant 1.5.3-1
related JAR files to the classpath that Eclipse uses for running Ant. It
then removes the XML-related JAR files from the Ant 1.5.3-1 distribution to
avoid a version conflict with Xerces Based XML Parser plugin.

1. Start Eclipse

2. Click Window > Preferences and expand Ant

3. Select Runtime to show the Classpath tab

4. Remove jars ant.jar, optional.jar

5.. Add jars ant.jar and optional.jar from C:\ apache-ant-1.5.3-1\lib
6. Click the Apply button and OK when finished.

If you set the classpath correctly then your Ant Preferences will look like
the following:


Notes: After setting the classpath, you must remove the XML related
xercesImpl.jar and xml-apis.jar from c:\apache-ant-1.5.3-1\lib; otherwise
when you run Ant from within Eclipse you will get an error such as the
following:

Buildfile: C:\eclipse\workspace\bean-managed\build.xml

BUILD FAILED: java.lang.VerifyError: (class:
org/apache/xerces/parsers/IntegratedParserConfiguration, method:
configurePipeline

signature: ()V) Incompatible type for getting or setting field

Total time: 751 milliseconds
Previous Topic:Custom taglets
Next Topic:[ANN] SWT Designer 1.2.1 Released
Goto Forum:
  


Current Time: Tue Jul 15 00:15:33 EDT 2025

Powered by FUDForum. Page generated in 0.06609 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top