1。下载
下载地址:http://ant.apache.org/bindownload.cgi
2。解压 cd /home/work/ant/
tar -zxvf apache-ant-1.8.1-bin.tar.gz
3。配置环境变量
~/.bashrc
# .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi ANT_HOME=/home/work/ant/apache-ant-1.9.4 export JAVA_HOME=/home/opt/java6 export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
时间: 2024-11-08 22:47:39