Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Install Ant for Ionic

    Lukas RuebbelkeLukas Ruebbelke

    In this lesson, we install Apache Ant and create an environment variable for it. Ant is a tool used primarily to build Java applications and is also necessary to run Android. Ionic uses Ant to aid in driving the processes that will build the native Android app later on.



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson




    In this lesson, we are going to learn how to install Apache Ant. We will go to, click on "Binary distributions," and then, go to the current release of Ant and download the zip.

    This will take just a moment to download. Once it is complete, we are going to extract the contents to a folder of our choosing. In this case, I'm just going to put it into my users' folder. From here, I am going to copy the location path so that I can create an environment variable in just a moment.

    From here, we are going to go to this PC, system properties, advance system settings, and then, we will click on environment variables. We're going to click "New" and we will type in "Ant_home" and paste in the path to the Ant directory.

    We are now going to edit our user path, and we are going to add in the path to our Ant directory, as well as append the reference to the bin directory within that. Once that is complete, we will click "OK."

    We will go to a command prompt and type it. We do not actually have a built XML setup, so this is going to fail, that's fine, but it did try to execute. This is how we install Ant on windows.