jenkins - ant - not recognized as an internal -


I have installed ant (apache-ant-1.7.0). But when I run the ant command in the DOS command prompt, it says that

  'ants' is not recognized as internal or external commands, operative programs or batch files.  

Where am I going wrong.

This means it is not on the path.

Edit your path environment variable to include the "bin" directory of the anti. The exact step to edit your path, depending on your operating system, but for example on XP:

  • Bring Explorer (Windows-E)
  • "My Select "Computer" and "Properties"
  • On the "Advanced" tab, click on "Environment Variables"
  • If the set of "user variables" is already a PATH entry , Then edit that. Otherwise, create a new entry (if you want it to affect all users, then set it as a system environment variable.)
  • At the bin directory without any quotation marks Add a semi-colon to separate it from another entry. For example, you might have:

      c: \ Program Files \ Utils; Start a new command prompt to see the changes (they will not affect the current window): 

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -