While building with ant, I am getting the following error:
java.io.IOException: Cannot run program \"D:\\Tools\\Java\\jdk1.6.0_12\\jre\\bin\\java.exe\
In my case, removing duplicate jars solved the problem.