[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [platform-ant-dev] How to change the CLASSPATH used by ANT fr om Eclipse ?
|
Niall,
This is what I did to get ant building.
Window->Preferences-> then select Ant->Runtime then added
d:/j2sdk1.4.1_01/lib/tools.jar
I hope that help.
-----Original Message-----
From: Downey, Niall [mailto:Niall.Downey@xxxxxxxxxxx]
Sent: Fri, January 10, 2003 10:07 AM
To: 'platform-ant-dev@xxxxxxxxxxx'
Subject: [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
_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev