go to  ForumEasy.com   
JavaPro
Home » Archive » Message


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


You can check the basic installation with opening a new shell and typing ant. You should get a message like this

C:\ant
Buildfile: build.xml does not exist!
Build failed

So Ant works. This message is there because you need to write an individual buildfile for your project. With a ant -version you should get an output like
C:\ant -version
Apache Ant version 1.8.0 compiled on February 1 2010



 

> On 04/19/2010 03:40:54 PM ant wrote:


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 )
    





    References:

  •  


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