go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Environment setup
 
Subject: Environment setup
Author: ant
In response to: System requirements
Posted on: 04/19/2010 03:40:54 PM


Before you can run Ant there is some additional set up you will need to do:

  • 1) PATH -- Add the bin directory to your path.
  • 2) ANT_HOME -- Set the ANT_HOME environment variable to the directory where you installed Ant.
  • 3) JAVA_HOME -- Optionally, set the JAVA_HOME environment variable to the directory where your JDK is installed.

    You can make the change statically via computer system administration or dynamically via command line settings which is good for the current CMD session:

    Windows and OS/2

    Assume Ant is installed in c:\ant\. The following sets up the environment:
    set ANT_HOME=c:\ant
    set JAVA_HOME=c:\jdk-1.5.0.05
    set PATH=%PATH%;%ANT_HOME%\bin
    


    Linux/Unix(bash)

    Assume Ant is installed in /usr/local/ant. The following sets up the environment:
    
    export ANT_HOME=/usr/local/ant
    export JAVA_HOME=/usr/local/jdk-1.5.0.05
    export PATH=${PATH}:${ANT_HOME}/bin
    


    Linux/Unix(csh)
    
    setenv ANT_HOME /usr/local/ant
    setenv JAVA_HOME /usr/local/jdk/jdk-1.5.0.05
    set path=( $path $ANT_HOME/bin )
    


     

    > On 04/19/2010 03:37:52 PM ant wrote:


    1) TDK 1.5 or later

    2) To build and use Ant, you must have a JAXP-compliant XML parser installed and available on your classpath, such as Xerces. The binary distribution of Ant includes the latest version of the Apache Xerces2 XML parser. Please see http://java.sun.com/xml/ for more information about JAXP. If you wish to use a different JAXP-compliant parser, you should remove xercesImpl.jar and xml-apis.jar from Ant's lib directory.





    References:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.