wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Can't access Eclipse ant plugin from command line. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Can Watch "Can New topic

Can't access Eclipse ant plugin from command line.

Ste Davies

Joined: Oct 26, 2010
Posts: 19
Hi, I have just installed the latest Eclipse and I need to set my environment variables so that 'ant' is recognized from the command line. As there is no bin folder or ant.bat in the Eclipse ant plugin, I've tried setting the ANT_HOME and PATH environmental variables to the lib and etc folders, but typing 'ant' into the command line returns: 'ant is not recognized'. Thanks for any help.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29233

You need ANT_HOME/bin in your PATH as well. You might have more luck installing Ant from scratch for the command line. Or at least following the instructions for doing so.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Can't access Eclipse ant plugin from command line.
Similar Threads
spawning a server in ant
Which SVN client for Linux
ANT and Eclipse "Java Build Path"
'javac' is not recognized
How to run a java class from command line in eclipse