• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What am I doing wrong when setting the paths?

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic