The following path seems to work for me to find all the class files, dependent jar, and zip files for a compile step: <path id="classpath.compile"> <fileset dir="./${build.pkg}"> <include name="**/*.class"/> </fileset> <fileset dir="./${src.lib}"> <include name="**/*.jar"/> <include name="**/*.zip"/> </fileset> <pathelement location="."/> </path>
I use it like this: <javac destdir="${build.classes}" srcdir="${src.dir}" debug="true" deprecation="true" source="1.4" sourcepath=""> <include name="${src.detokenizer}/**/*.java" /> <classpath refid="classpath.compile"/> </javac> HTH Bill Rich Wilandra Consulting LLC 1325 Addiewell Place San Jose, CA 95120-3905 phone: +1 408 268-2452 mobile: +1 408 410-9713 Santa Cruz: +1 831 464-9007 fax: +1 413 669-9716 [EMAIL PROTECTED] http://www.wilandra.com -----Original Message----- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 7:52 AM To: ant Subject: classpath directory? hihi, i keep getting "package abc.xyz does not exist" errors when trying to compile using <javac>. is this a <classpath> related problem? what is happening is that i'm trying to compile a subset of java source files (all stored within a directory). these sources require importing of other classes that i don't have the source files for, and which are not in a convenient .jar file... i do however have the .class files of these stored in another directory. i have tried telling <javac> to look in this directory by using <classpath> and the various nested tags like <pathelement>, <dirset>, and <fileset>. but nothing i have tried makes any difference. does anyone have any ideas what i may be doing wrong? please and thanks in advance! woodchuck __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]