ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: ant build does it work?
Date Thu, 02 Apr 2009 15:40:04 GMT

How are you setting the JAVA_HOME?  Below is some code on how I set this 
variable.  The code is 
in a bat file:

        set JAVA_HOME=C:\Program Files\Java
        set ANT_HOME=C:\opt\ant\apache-ant-1.6.1
        set CLASSPATH=%ANT_HOME%\lib;%FLEX_HOME%\lib;

        set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;

        set PATH=%PATH%;C:\Program Files\CVSNT;C:\opt\ant\cvs

        call %ANT_HOME%\bin\ant -buildfile foo_build.xml ^
                -Dcvs.server="" ^
                -Dcvs.repo_root="/moo/repo/goo" ^
                -Djacksum.dir="/opt/ant/apache-ant-1.6.1/lib"  ^
                -Dskip.VersionInfo="true" ^

This works like a charm with no problems.  This bat file runs on Windows 
XP Professional.
Hope this helps ...


samitj <> 
04/02/2009 11:29 AM
Please respond to
"Ant Users List" <>


ant build does it work?

I set JAVA_HOME to point to my local installation to 1.6 java. But ant is
still detecting system java 1.5

Apache Ant version 1.7.0 compiled on July 26 2007
Buildfile: build.xml
Detected Java version: 1.5 in: /opt/sun-jdk-
Detected OS: Linux
parsing buildfile /mnt/d1/home/sjain/medium/svn/medium/build.xml with URI 

HOw to change this? I have tried everything...from setting JAVA_HOME env
variable to changing executable property to .....

is there way to make this work at all?
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message