[root@yz219 apache-ant]# vim ~/.bash_profile export ANT_HOME=/opt/apache-ant/apache-ant-1.10.9 export JAVA_HOME=/usr/java/jdk1.8.0_271-amd64/ export PATH=${PATH}:${ANT_HOME}/bin