TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Linux

Install Ant tool on Ubuntu Linux

Ubuntu

Overview

In this post, we will learn to download and install Apache Ant tool on Ubuntu Linux machine. Steps to set Ant home variable.

Environment:

  • Ubuntu Linux
  • Ant Latest version
  • Mozilla Firefox Browser

Steps

First things first, check if ant is installed on the machine.

Launch terminal and issue the following command.

$ ant

ant not found

We can install ant from the above command. However, we will do a manual download from native packages and install of the tool to a standard location.

Download

Navigate to Ant official website.

https://ant.apache.org/

 

Ant Download Linux

Click on the Binary Distributions link under the Download section.

Choose the tar file and download the file on to the machine.

 

Ant Download Save File Linux

Install Ant

Locate the tar file on the computer and extract the contents.

$ sudo tar -xvf <ant tar file>

 

ant contents tar command

 

Move the ant installation folder to some standard location. In this tutorial, we will use /opt/ant directory path.

ANT_HOME variable

Set the ANT_HOME environment variable to point to the ant install folder. For example, in this case

Edit the /etc/profile file and set the variable. Add the bin directory to the PATH.

ANT_HOME=/opt/ant

export ANT_HOME

 

Etc Profile Linux

 

That’s it. We are done with the Ant install process.

Verify

Launch Terminal and issue the following Ant version command.

$ ant -v

 

ant version command

Related Posts

CentOS Stream ISO File Download

Linux /

CentOS 8 Stream Install Guide

Android Studio Setup Wizard

Linux /

Customization of Android Development Environment

Download Android Studio

Linux /

Download Android Studio Package on Linux

Gradle Install Ubuntu

Linux /

Install Gradle on Ubuntu Linux

CentOS Linux Distribution Desktop

Linux /

CentOS Linux Distribution

‹ Shell Script to Display Name in Linux› Linux Directories

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle
  • Draw Parallel Lines using Flowgorithm Graphics

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version