Ant is actually a Java application and will run on ANY system that runs Java.

The "ant" command itself is a shell script that runs the Ant java
program under your Java interpreter. A ant.bat script does the same
thing for Windows.

The output of the command you show is the output of the "java
-version" command.

Try running "ant --execdebug -version" and see what you get as output.

It should look something like this:

exec "/usr/bin/java" -classpath "/usr/share/ant/lib/ant-launcher.jar"
-Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib"
org.apache.tools.ant.launch.Launcher -cp "" "-version"
Apache Ant version 1.7.1 compiled on June 27 2008


On Thu, Feb 19, 2009 at 12:19 PM, meher03 <mehe...@hotmail.com> wrote:
>
> Hi all,
>
> Qs: Will Ant 1.7.1 binary downloaded from the Apache ant website work on
> linux box.
>
> I did a uname -a on the linux box to get its info
>
> Linux dalesb 2.6.9-78.ELxenU #1 SMP Wed Jul 9 16:21:57 EDT 2008 x86_64
> x86_64 x86_64 GNU/Linux
>
> The reason I am asking is because, i installed ant in the linux box in
> /app/ant
>
> Then cd to /app/ant/bin and ran the command ./ant -version
>
> The following is the output :
> dalesbdev03::/app/ant/bin-> ./ant -version
> java version "1.4.2"
> gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10)
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> The above does not show which version of ant is running ... Is the above
> output correct .. Am i supposed to be seeing something else or something
> more which would gib=ve me the version on ant that is running ..
>
> Please help
>
> Thank YOu
>
> --
> View this message in context: 
> http://www.nabble.com/Ant-version-for-linux-tp22104805p22104805.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>



-- 
--
David Weintraub
qazw...@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to