
you have successfully installed Apache Ant on centos 8 server. ~]# ant -versionĪpache Ant(TM) version 1.10.9 compiled on September 27 2020Īlso you can check Ant home path and ant help. Then load the the environment variables permanently. Please use the documentation appropriate to your current version.
Installing apache ant manual#
If your version of Ant (as verified with ant -version) is older or newer than this version then this is not the correct manual set. and make it executable with below command. This is the manual for version 1.10.12 of Apache Ant. vi /etc/profile.d/ant.shĪdd following content to above file.
Installing apache ant how to#
ln -s /opt/ant/bin/ant /usr/bin/antĪlso Read -> How to Install Mariadb on Centos 8 Step 3: Setup Environment VariablesĬreate one new file named as ant.sh in /etc/profile.d directory. Next, create a symbolic link to the Ant distribution by running below command. You can download the latest version of Apache ant from Apache Ant release download page.Īfter download you can extract it using unzip command and rename as ant.Īlso Read -> How to Install PHP 7.4 on Centos ~]# cd opt]# wget opt]# unzip opt]# mv apache-ant-1.10.9 ant OpenJDK 64-Bit Server VM 18.9 (build 11.0.9+11-LTS, mixed mode, sharing)Īlso Read -> How to Install JAVA 13 on Centos 8 Step 2: Install Apache Ant OpenJDK Runtime Environment 18.9 (build 11.0.9+11-LTS)

~]# dnf install java-11-openjdkĬheck java version with following command. Step 1: Install Javaįirst we need to install Java 8 or higher version. Ant can also be used effectively to build non Java applications, for instance C or C++ applications.Ant is extremely flexible and does not impose coding conventions or directory layouts to the Java projects which adopt it as a build tool. Apache Ant is a Java library and command-line tool and it supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications.
