File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Can Watch "Can New topic
Author

Can't access Eclipse ant plugin from command line.

Ste Davies
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

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
ANT and Eclipse "Java Build Path"
How to run a java class from command line in eclipse
Which SVN client for Linux
spawning a server in ant
'javac' is not recognized