ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: .bat file for ant
Date Sun, 30 Dec 2001 13:54:10 GMT
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" <rtayek@mediaone.net>
To: <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message