Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set ANT_HOME with Windows?

Tags:

How can I easily set ANT_HOME under Windows? I added "D:\Installz\apache-ant-1.8.2\bin;" to my system environment variable PATH and I also created an ANT_HOME variable.

like image 646
Bekhbayar Avatar asked Feb 15 '12 08:02

Bekhbayar


People also ask

What should ANT_HOME be set to?

ANT_HOME should be set to the directory where ant is installed. e.g. Show activity on this post. If you have missing files/directories, unzip the apache-ant-1.9.

How do I know if Ant is installed Windows 10?

Check your installation by opening a command line and typing ant -version into the commend line. The system should find the command ant and show the version number of your installed Ant version.


1 Answers

In Windows 7 you can go to Control Panel\All Control Panel Items\System or right click on Computer and then to “Advance system setting”

  1. Choose Advanced Tab
  2. Click "Environment Variables" button
  3. In System Variables, click "New" button
  4. Set Variable Name: ANT_HOME and value as {directoryPath}\apache-ant-1.8.2 (Ex: D:\Installz\apache-ant-1.8.2)
  5. Click OK
  6. Either click again on New button if you do not have ‘Path’ Variable in there

    OR

    Select it and edit by adding the value : %ANT_HOME%\bin;

  7. Click OK
  8. To check if ANT is properly configured - In command prompt, type ant -version
  9. It should give the ant version installed on your machine
like image 110
aces. Avatar answered Oct 10 '22 20:10

aces.