LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ANT installation directory (https://www.linuxquestions.org/questions/linux-software-2/ant-installation-directory-310127/)

allelopath 04-05-2005 06:57 PM

ANT installation directory
 
I'm trying to install some software.
It needs ant, which I installed from the SuSE 9.2 dvd

The instructions say:
Set the ANT_HOME environment to the installation directory.
Add $ANT_HOME/bin to your PATH environment.

If i do a "locate ant", I see:
/usr/share/java/ant-1.6.2.jar
/usr/share/javadoc/ant-1.6.2
/usr/share/javadoc/ant-1.6.2/allclasses-frame.html
...and so on

The problem is that I'm not sure what the ant installation directory is and that I don't see a /bin/ folder associated with any ant directories.
What should I do?

rose_bud4201 04-06-2005 12:00 PM

For me at least, the ant directory is /usr/local/ant/, and that would make $ANT_HOME/bin be /usr/local/ant/bin/:

[lthurber@hostname ~]$ echo $PATH
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:.:/opt/IBM/director/bin:/opt/gnome/bin:/sbin:/home/lthurber/java/bin:/usr/local/ant/bin:/home/lthurber/projects/citicom/build/dev:/usr/java/bin:/usr/local/ant/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc

Alternatively, you could uninstall and reinstall ant, this time giving a directory (i.e. /usr/local) where you'd like it to be installed so that next time you know where to find it.

osio 06-23-2006 05:35 AM

$ ant -diagnostics

You'll find something like
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/share/ant

shravee 09-17-2009 05:42 AM

How to install ant
 
i unzipped the ant.tar.gz file in /usr/Ant/

and in the etc/bashrc file i set the following.

ANT_HOME=/usr/Ant/apache-ant-1.7.0
PATH=$ANT_HOME/bin:$PATH

saved the file and exited.

then entered source ./bashrc


are these the installation steps or anything else is required.









regards
shravan


All times are GMT -5. The time now is 02:13 AM.