Fog Creek Software
Discussion Board

Technical Luddite - Needs Help Understanding Paths

I am about to install ANT in my Windows XP machine. part of the installing instructions on the Apache Ant site were setting up the environments:

set ANT_HOME=c:\ant
set JAVA_HOME=c:\jdk1.2.2
set PATH=%PATH%;%ANT_HOME%\bin

set ANT_HOME=c:\ant - these I went to Control Panel>Systems>Advance and created a new system variable with the name "ANT_HOME" and path "C:\ant"

set JAVA_HOME=c:\jdk1.2.2 - same as above

set PATH=%PATH%;%ANT_HOME%\bin - this I was not sure what to do?

Wednesday, December 10, 2003

to the end of the PATH environment variable.

Duncan Smart
Wednesday, December 10, 2003

If you just enter the string on the right of the assignment operator as the value to assign PATH to, Windows will do the right thing and expand the %var% parts of the expression into the value contained in 'var'.

I do not know if this expansion occurs once at entry time of the variable assignment, or if the expansion of the %var%'s is evaluated at run time.

Bored Bystander
Wednesday, December 10, 2003

Thanks :)

Thursday, December 11, 2003

There are two paths you can go by, but in the end there's still time to change the one you're on.

You jumped straight to Ch 10, didn't you?
Friday, December 12, 2003

*  Recent Topics

*  Fog Creek Home