ant & environmental variables

H

hawat.thufir

(follow up to microsoft.public.win2000.general)

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Administrator>ant
ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME.
C:\Documents and Settings\Administrator>d:

D:\>ant
ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME.
D:\>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=D:\ProgramFiles\ant\bin
APPDATA=C:\Documents and Settings\Administrator\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=ARRAKIS
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_02\bin
LOGONSERVER=\\ARRAKIS
NGETHOME=D:\nget
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Java\jdk1.5.0_02\bin;D:\ProgramFiles\ant\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0701
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=ARRAKIS
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator
windir=C:\WINNT

D:\>cd ProgramFiles

D:\ProgramFiles>dir
Volume in drive D has no label.
Volume Serial Number is 1CBF-03ED

Directory of D:\ProgramFiles

03/13/2005 02:40p <DIR> .
03/13/2005 02:40p <DIR> ..
03/13/2005 02:40p <DIR> ant
0 File(s) 0 bytes
3 Dir(s) 3,637,313,536 bytes free

D:\ProgramFiles>





AFAICT ant's correctly configured...?


thanks,

Thufir
 
P

Pegasus \(MVP\)

(follow up to microsoft.public.win2000.general)

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Administrator>ant
ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME.
C:\Documents and Settings\Administrator>d:

D:\>ant
ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME.
D:\>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=D:\ProgramFiles\ant\bin
APPDATA=C:\Documents and Settings\Administrator\Application Data
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=ARRAKIS
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_02\bin
LOGONSERVER=\\ARRAKIS
NGETHOME=D:\nget
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Java\jdk1.5.0_02\bin;D:\ProgramFiles\ant\bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 7 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0701
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=ARRAKIS
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator
windir=C:\WINNT

D:\>cd ProgramFiles

D:\ProgramFiles>dir
Volume in drive D has no label.
Volume Serial Number is 1CBF-03ED

Directory of D:\ProgramFiles

03/13/2005 02:40p <DIR> .
03/13/2005 02:40p <DIR> ..
03/13/2005 02:40p <DIR> ant
0 File(s) 0 bytes
3 Dir(s) 3,637,313,536 bytes free

D:\ProgramFiles>





AFAICT ant's correctly configured...?


thanks,

Thufir

Your post makes no sense without the original post.
 
H

hawat.thufir

Pegasus said:
Your post makes no sense without the original post.

ahhh, sorry, tried to cancel the post. got the environmental var's
working for ant. the "set" command showed the problem, very convenient
little command there :)


thanks,

Thufir
 
A

Arnaud Berger

Hi,

I think ANT_HOME must point to the directory where ant is installed, not a
sub-directory like "bin".

Just try : D:\ProgramFiles\ant instead of D:\ProgramFiles\ant\bin


Regards,

Arnaud
 
H

hawat.thufir

thanks, IIRC the "set" command showed an extra "\" because it was in
one environmental variable, and also in the PATH.

thanks again,

Thufir
 
R

Roy Goodman

C:\Documents and Settings\Administrator>ant
ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME.
...
D:\>set
ANT_HOME=D:\ProgramFiles\ant\bin
...
D:\>cd ProgramFiles

D:\ProgramFiles>dir
Volume in drive D has no label.
Volume Serial Number is 1CBF-03ED

Directory of D:\ProgramFiles

03/13/2005 02:40p <DIR> .
03/13/2005 02:40p <DIR> ..
03/13/2005 02:40p <DIR> ant
0 File(s) 0 bytes
3 Dir(s) 3,637,313,536 bytes free

I'm reasonably sure you want:

ANT_HOME=D:\Program Files\Ant

Not what you have. In fact, you may even need

ANT_HOME=D:\Progra~1\Ant

if ant has a hard time figuring out space in path names.

Roy
 
H

hawat.thufir

Roy Goodman wrote:
[..]
I'm reasonably sure you want:

ANT_HOME=D:\Program Files\Ant

Not what you have. In fact, you may even need

ANT_HOME=D:\Progra~1\Ant

if ant has a hard time figuring out space in path names.

Roy

from memory:
ANT_HOME=D:\ProgramFiles\ant
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Java\jdk1.5.0_02\;D:\ProgramFiles\ant\bin;

but, it's really:

PATH=...;%ANT_HOME%\bin;

I had
ANT_HOME=D:\ProgramFiles\ant\

with an extra slash, which was mucking things up. the "set" command
showed the problem :)

thanks guys,

Thufir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top