Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Where is ant home in apache ant 1.8?


Asked by Scarlet Bravo on Nov 29, 2021 FAQ



Actually ANT_HOME should NOT be set where ant.bat is located. It should be set to the ant.bat parent directory. E.g. C:\apache-ant-1.8.1 <-- ANT_HOME | bin <-- this is where ant.bat lives. As duffymo correctly pointed out the ANT_HOME/bin still must be on your PATH.
Accordingly,
To get up and running with the binary distribution of Ant quickly, follow these steps: Make sure you have a Java environment installed. See System Requirements for details. Download Ant. See Binary Distribution for details. Uncompress the downloaded file into a directory.
Similarly, ANT_HOME should be set to the directory where ant is installed. e.g. Your ANT_HOME should be set: set ANT_HOME=C: ools\apache-ant at the System Environment settings and not User Environment Settings I've had the same problem, and this is how I resolved it:
Moreover,
The ANT_HOME variable has to be a reference to the directory where the bin folder is found such as C:\Apps\apache-ant-1.8.4-bin\apache-ant-1.8.4\ The PATH reference can than be a reference to the ANT_HOME variable and the bin folder such as %ANT_HOME%\bin ANT_HOME should be set to the directory where ant is installed. e.g.
Besides,
Older versions of Ant are available in the archives at https://archive.apache.org/dist/ant/. The files are organized as follows. PGP keyfile. It contains the PGP keys of Ant developers so you can 'trust' the distribution.