Why are you not simply using ant.bat that comes with the Ant distribution?
Put ANT_HOME/bin in your path and simply type 'ant'.
Erik
----- Original Message -----
From: "Ray Tayek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 30, 2001 8:26 AM
Subject: .bat file for ant
> hi, using:
>
> set JAVA_HOME=C:\jdk1.3.1_01
> set ANT_HOME=D:\java\jakarta-ant-1.4
> java -cp D:\java\jakarta-ant-1.4\lib\ant.jar;. org.apache.tools.ant.Main
>
> in a batch file to run the ant sample. works fine. but the same file
> running from a different directory gets a:
>
> D:\java\java_xml_pack-fall01\jaxp-1.1.3\examples\SAXTagCount>java -cp
> D:\java\jkarta-ant-1.4\lib\ant.jar;. org.apache.tools.ant.Main
> Buildfile: build.xml
>
> compile:
> [javac] Modern compiler is not available - using classic compiler
> [javac] Compiling 1 source file
>
> BUILD FAILED
>
> D:\java\java_xml_pack-fall01\jaxp-1.1.3\examples\SAXTagCount\build.xml:28:
> Cannot use classic compiler, as it is not available A common solution is
to
> set the environment variable JAVA_HOME to your jdk directory.
>
> anybody have a clue as to why he is confused?
>
> thanks
>
> ---
> ray tayek http://home.earthlink.net/~rtayek/
> orange county java users group http://www.ocjug.org/
> want privacy? http://www.freedom.net/
> hate spam? http://samspade.org/ssw/
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>