Add ant to environment variable (PATH) under Linux

Source: Internet
Author: User
  • Enter the following command at the terminal:

Source/etc/profile

sudo gedit/etc/profile #sudo是为了取得编辑的权限

  • Add the following two lines under the profile file

Ant_home=/home/jij/workspace/apache-ant-1.9.4/bin
Path= $ANT _home/bin: $PATH

  • Save the closed file, enter the following command to test the success, return the version number, indicating that the path setting is successful

Ant-version
Apache Ant (TM) version 1.9.3 compiled on April 8 2014

Reference Links:

Installation and use of Ant under Linux

Http://blog.sina.com.cn/s/blog_701a88e90100ug2n.html

Environment variables for Linux

Http://www.cnblogs.com/Neddy/archive/2011/03/01/1968018.html

Add ant to environment variable (PATH) under Linux

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.