Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Prob with ANT_HOME or PATH

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I've just downloaded and installed Ant on my desktop.

I've followed the uninstallation instructions, but the paths look a tad odd. Ant has unzipped itself into a directory structure like
C:\ant\apache-ant-1.6.5
with the \lib and \bin directories coming off this.

ANT_HOME is thus set to
C:\ant\apache-ant-1.6.5

To include Ant on my path, the PATH variable needs updated accordingly. If I set it explicity ie
C:\ant\apache-ant-1.6.5\bin
I can run 'Ant' from the command line anywhere, everything works swimmingly.

If, however, I set it as per
[B]%ANT_HOME%\bin[B]
I keep getting the 'Ant' is not recognised blahblahblah routine.

Any ideas why this should be so? I'm setting these variables via Control Panel on XP.

Many thanks
As
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you have user and system variables, and the two aren't interchangeable ie if you set one you can't necessarily use it in the other. The second is that sometimes it needs a system restart to be available elsewhere.

Dave
 
Saloon Keeper
Posts: 22480
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you set and environment variable from the Windows control panel, it's effective when you open new command windows, but it won't update command windows that are already open.
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic