Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problem in defineing ANT_HOME

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. all
I have downloaded apache-ant-1.6.5 and extraeted it in
C:\Program Files\Apache Group\apache-ant-1.6.5\bin
the I set ANT_HOME=C:\Program Files\Apache Group\apache-ant-1.6.5
and PATH=%PATH%;ANT_HOME\bin

but when I use it from commane prompt it give me an error


ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
please help me out....
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two things:

First, if a path has spaces in it, you put quotes around it.
set ANT_HOME="C:\Program Files\Apache Group\apache-ant-1.6.5"

Second, windows requires the percent sign on both ends of environment variables:
set PATH=%PATH%;ANT_HOME%\bin



Also, it's very easy to test an evironment variable before proceeding with whatever you're doing with them.

You can see it by typing:
echo %ANT_HOME%

But a better test is to actually use it from the command line.
dir %ANT_HOME%
or:
cd %ANT_HOME%

If those don't work, your environment variable is not properly set.
[ December 01, 2005: Message edited by: Ben Souther ]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh Sunkara,
Your post was moved to a https://coderanch.com:80/t/552522";" target="_new" rel="nofollow">new topic.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this problem solved?
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seo, welcome to JavaRanch!

Have you checked the date on the original post?

If you are having a similar problem, start a new post and TellTheDetails
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic