[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-ant-dev] How to change the CLASSPATH used by ANT from Eclipse ?
|
I am trying to use Ant to build a project in Eclipse. The build says that it
cannot find the ant jars themselves for importing into my code. The error
message is:
H:\sond23\sof\tools\sql\java\Cat.java:1: package org.apache.tools.ant does
not exist
import org.apache.tools.ant.*;
Adding the -v argument to Ant shows that the Ant jar files themselves are
not on the classpath:
Compilation args: -d H:\sond23\sof\tools\sql\java -classpath
H:\sond23\sof\tools\sql\java;D:\eclipse\startup.jar -sourcepath
H:\sond23\sof\tools\sql\java -g
Doing ant -v classes in a command box shows that Ant is using :
[javac]
'H:\sond23\sof\tools\sql\java;D:\jdk1.3.1_02\lib\tools.jar;D:\ant-1.5.1\lib\
xml-apis.jar;D:\ant-1.5.1\lib\xercesImpl.jar;D:\ant-1.5.1\lib\optional.jar;D
:\ant-1.5.1\lib\ant.jar'
[javac] '-sourcepath'
[javac] 'H:\sond23\sof\tools\sql\java'
[javac] '-g'
I went into Windows|Preferences|External Tools|Ant|Classpath and it is
showing:
d:/eclipse/plugins/org.apache.ant_1.4.1/ant.jar etc.
What is going wrong ?. Have I missed something ?.
Regards,
Niall