Which version of Java is required to run Apache Ant?
You will need Java installed on your system, version 1.4 or later required, 1.5 or later strongly recommended. The later the version of Java, the more Ant tasks you get. If only the JRE is present but not a full JDK then many tasks will not work. The following table lists the minimum Java versions required to compile and run Ant. Note that most committers work with more recent versions of the JDK and that Ant doesn’t get tested much for older versions.