Ant path and JAVA_HOME path

Standard

Building an ionic application you can have the following error:

Error: ERROR : executing command ‘ant’, make sure you have ant installed and added to your path.

And if you install ant, using brew install ant, you can just have an JAVA_HOME problem.  For Mavericks users, you need to set your JAVA_HOME as: 

export JAVA_HOME="$(/usr/libexec/java_home)"

Before you do it, please reinstall your ant:

rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s