Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since upgrading to the latest Mac OSX (10.9.1) I cannot run builds in Sublime Text using the SuperAnt tool. Here is the error:

<> are my privacy omissions

[Errno 2] No such file or directory: 'ant'
[cmd: ['ant', '-f', '/Users/stan/Development/<>/<>/build.xml', 'dist-amp']]
[dir: /Users/stan/Development/<>/<>]
[path: /usr/bin:/bin:/usr/sbin:/sbin]

What I'm noticing is that my path listed in the error is not my actual path:

/opt/local/lib/mysql5/bin/:/opt/local/bin:/Applications/Sublime Text

So my question is two fold.

  1. Were there changes in the latest OSX service pack that caused this issue to arise?
  2. How can I manually set this path variable?


share|improve this question

It's because Maverick does not have the Java tools anymore (like Maven, Ant, ...) pre-installed. What works for me whas:

brew update
brew install ant

Then, you might need to do the following to add the "ant" to the default path (that SuperAnt seems to be using)

sudo ln -s /usr/local/bin/ant /usr/bin/ant

Here are some links talking about the various ways to install Ant on Mac.

How do I install ant on OS X Mavericks?

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .