banner



How To Install Apache Ant

Apache Ant is a Java library and command-line tool that help building software. Ant supplies a number of congenital-in tasks that allows to compile, gather, and run Coffee applications. Its build files are written in XML so it is open standard, portable and easy to empathize.

In this tutorial nosotros will evidence you how to install the latest version of Apache Pismire on CentOS eight . Apache Ant requires Java every bit dependency.

1. Install Java on CentOS eight

Apache Ant is congenital with Java engineering. And so it's necessary to install java earlier proceeding.

2. Download and Install Apache Pismire on CentOS viii

01- First, to download the latest version of Apache Ant, visit the Apache Emmet releases page. Use the wget command to download Apache Ant zilch file:

$ wget -c http://mirrors.advancedhosters.com/apache/pismire/binaries/apache-ant-i.ten.7-bin.goose egg        

02- In one case the download is completed, excerpt the zippo file in the /usr/local/ant directory:

$ sudo unzip apache-ant-*.cypher $ sudo mv apache-emmet-*/ /usr/local/ant        

If you get an error saying sudo: unzip: command not establish, install the unzip packet with: sudo dnf install unzip.

3. Setup environment variables

01- We will now configure the PATH environment variable to include the Apache Ant'south bin directory. To do that, create a new file named ant.sh inside of the /etc/profile.d/ directory.

$ half dozen /etc/profile.d/ant.sh ANT_HOME="/usr/local/ant" PATH="$PATH:/usr/local/ant/bin" export ANT_HOME export PATH        

02- Make the script executable by using the chmod control.

$ sudo chmod +10 /etc/profile.d/ant.sh        

03- Load the environment variables for the current session by using the post-obit command.

$ source /etc/contour.d/emmet.sh        

4. Verify the Apache Ant installation

To verify if Apache Ant is installed properly use the ant -v control which volition display the Apache Pismire version:

$ ant -version Apache Ant(TM) version i.10.7 compiled on September ane 2022        

Conclusion

Yous have successfully installed Apache Ant on your Centos 8 server. Yous might want to check the following guides:

  • How To Install PHP Composer on Centos 8
  • How to Install Gradle on CentOS 8

If y'all like our content, please consider buying us a coffee. Thank you for your support!
Buy Me A Coffee

Source: https://yallalabs.com/linux/centosredhat/how-to-install-apache-ant-centos-8/

Posted by: foxtheacted.blogspot.com

0 Response to "How To Install Apache Ant"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel