Install and configure ANT in ubuntu 1. you can use sudoapt-getinstallant to install it, but this method is not good. First, install ant instead of the latest version, and then install a bunch of other accompanying things. So I only need to manually install it with ant. II. manually install... install and configure ANT in ubuntu 1. you can use sudo apt-get install ant, but this method is not good. First, install ant instead of the latest version, and then install a bunch of other accompanying things. So I only need to manually install it with ant. 2. manually install 1. download the latest version of ant from the Apache official website: http://ant.apache.org/bindownload.cgi 2. decompress the downloaded .tar.gz file: tar-xf apache-ant-1.8.2-bin.tar.gz (may require a password) 3. move the extracted file to/opt/: sudo mv apache-ant-1.8.2/opt/(sudo cannot be saved; otherwise, you do not have permission) 4. configure the environment variable: sudo gedit/etc/profile. add the following blue font on the basis of the original: export ANT_HOME =/opt/apache-ant-1.8.2 export JAVA_HOME =/usr/lib/jvm/java-6-openjdk export PATH = $ JAVA_HOME/bin: $ PATH: $ ANT_HOME/bin export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar 5. verify whether the installation is successful: ant-ve Rsion Apache Ant (TM) version 1.8.2 compiled on December 20 2010 indicates that the installation is successful! You can use ant -- help to learn how to use it.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.