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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • 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

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
with the \lib and \bin directories coming off this.

ANT_HOME is thus set to

To include Ant on my path, the PATH variable needs updated accordingly. If I set it explicity ie
I can run 'Ant' from the command line anywhere, everything works swimmingly.

If, however, I set it as per
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
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.

Saloon Keeper
Posts: 22480
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
    Bookmark Topic Watch Topic
  • New Topic