Installing Ant on Windows XP

Pēdējais mainījis superadmin 2018-01-12 21:27

Installing Ant on Windows XP

Windows Unknown macro: recipelabel.

Unknown macro: message.

  1. Unzip file <tt>apache-ant-1.7.1-bin.zip</tt>, e.g. under <tt>c:/tools</tt>
  2. Define a new environment variable *ANT_HOME* = <tt>c:/tools/apache-ant-1.7.1</tt> like this: {code:xml}
    REG QUERY "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "JAVA_HOME"
    REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "ANT_HOME" /d "c:/tools/apache-ant-1.7.1"
    {code} The first command should read the *JAVA_HOME* variable - the place where Java is installed. Second one sets the *ANT_HOME* variable.
  3. Add another directory to the *PATH* variable - i.e. add before all other path entries <tt>%ANT_HOME%\bin</tt> and separate it from the next *PATH* values by a semicolon (;) {code:xml}
    REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "PATH" /d "%ANT_HOME\bin";%PATH%
    {code}
  4. You can also set the environment variables manually by *WinKey + Pause > Advanced > Environment Variables* and editing System variables (which are preferable to the user ones) - see references below.

Links

  1. [Manually Setting Windows Environment Variables > http://odo.lv/Recipes/SetEnvironmentVars]

Tags:  

Tagi:
Izveidojis Kalvis Apsītis 2009-07-18 11:05
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation