Hi, 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="moo-server.net" ^ -Dcvs.repo_root="/moo/repo/goo" ^ -Djacksum.dir="/opt/ant/apache-ant-1.6.1/lib" ^ -Dskip.VersionInfo="true" ^ all This works like a charm with no problems. This bat file runs on Windows XP Professional. Hope this helps ... Ray samitj <jain.sa...@gmail.com> 04/02/2009 11:29 AM Please respond to "Ant Users List" <user@ant.apache.org> To user@ant.apache.org cc Subject ant build does it work? Hello, 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-1.5.0.12/jre Detected OS: Linux parsing buildfile /mnt/d1/home/sjain/medium/svn/medium/build.xml with URI = file:/mnt/d1/home/sjain/medium/svn/medium/build.xml 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: http://www.nabble.com/ant-build-does-it-work--tp22850202p22850202.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