This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes General Computing and the fly likes Setting Up Ant with enviromental variables? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Setting Up Ant with enviromental variables?" Watch "Setting Up Ant with enviromental variables?" New topic
Author

Setting Up Ant with enviromental variables?

Michael Hubele
Ranch Hand

Joined: Dec 17, 2005
Posts: 182
I am trying to set up ANT on my computer and I want to set up some enviromental variables for it but I am not sure what to do.

This is what I did

Places ant here: G:\Program Files\apache-ant-1.6.5
Installed Java Here: G:\Program Files\Java\jdk1.5.0_06

When to Enviromental variables and did this

Var Name: ANT_HOME
Var Variable: G:\Program Files\apache-ant-1.6.5

Var Name: JAVA_HOME
Var Variable: G:\Program Files\Java\jdk1.5.0_06

Var Name: PATH
Var Variable: PATH=%PATH%;%ANT_HOME%\bin

now when I go to cmd line and type in ant I get buildFile: build.xml does not exist!

build Failed

So I got the build file but I don't know where to put it or what I am suppost to do

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Moved to the Ant forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Setting Up Ant with enviromental variables?
 
Similar Threads
Issues Re Environment and Path Variables In Windows XP For JBoss and ANT
'ant' not recognized...
Setting Up Ant with enviromental variables?
Problems Running ANT target.
Compilation error while building the project using Ant