• 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

What am I doing wrong when setting the paths?

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I've downloaded Ant and I'm trying to install it with Windows XP.
So far I have C:\Ant with all the folders.
Also, I system has these:
CLASSPATH
.;.;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\WINDOWS\java\classes;.
path
;C:\Program Files\STI\bin\pc-win95;C:\ant\bin
AUTOEXEC.BAT
set ANT_HOME=c:\ant
set JAVA_HOME=c:\jdk1.1.8
set PATH=%PATH%;%ANT_HOME%\bin
set CLASSPATH=.
But, when I try to run Ant, I get this message:
'ant' is not recognized as an internal or external command,
operable program or batch file.
so I assume I didn't do any of the Path stuff properly.
I'd really appreciate any help
Thanks!
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, I don't know exactly what's wrong, but I suggest to use only one source for your environment varibales.
I wouldn't use the autoexec.bat on Windows XP anymore.
Try to set the environment variables only via your control panel.
Then open a command window and type "set" to check the environment variables.
 
Fernando Sanz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Peter Storch:
Hmm, I don't know exactly what's wrong, but I suggest to use only one source for your environment varibales.
I wouldn't use the autoexec.bat on Windows XP anymore.
Try to set the environment variables only via your control panel.
Then open a command window and type "set" to check the environment variables.


You're right, those were two of the problems.
I've finally got Ant up and running.
Thanks
 
    Bookmark Topic Watch Topic
  • New Topic