Discussion:
ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
Jack Chan
2006-04-02 08:57:34 UTC
Permalink
Dear All
I'm trying to install Ant into my windows XP workstation, firstly I had
extract the ANT file into my c:\ant folder, then from the environment
setting, I had create "ANT_Home" with value point to c:\ant, also I had
installed Java properly in my workstation with right value on system
environment.
Now when I type "ant" from the console, it just keep saying

"ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME."

I had double checked that the environment variable had set correctly, but it
just don't work!! Can anyone please give me a hand on this, as I got to get
ANT up and running for my business project.

Thanks

Jack
Stephen McConnell
2006-04-02 11:31:48 UTC
Permalink
Post by Jack Chan
I had create "ANT_Home" with value point to c:\ant,
Now when I type "ant" from the console, it just keep saying
"ANT_HOME is set incorrectly or ant could not be located.
Please set ANT_HOME."
Try defining the environment variable "ANT_HOME", not "ANT_Home".

/Steve.
Jack Chan
2006-04-02 13:21:16 UTC
Permalink
Dear Stephen

Thanks for your reply, I had change th name to "ANT_HOME", but it is still
the same, it just shows

" ANT_HOME is set incorrectly or ant could not be located. Please set
ANT_HOME."

When typing ant from console.
I'm sure that when I type "ant" from the console, the system had go in the
c:\ant\bin and call the executable file "ant", otherwise it will say that
the command is not recognize by the system. But just don't know why it keep
saying that the "ANT_HOME" is set incorrectly!!!

Thanks

Jack

-----Original Message-----
From: Stephen McConnell [mailto:***@dpml.net]
Sent: Sunday, April 02, 2006 7:32 PM
To: 'Ant Users List'
Subject: RE: ANT_HOME is set incorrectly or ant could not be located. Please
set ANT_HOME.
Post by Jack Chan
I had create "ANT_Home" with value point to c:\ant,
Now when I type "ant" from the console, it just keep saying "ANT_HOME
is set incorrectly or ant could not be located.
Please set ANT_HOME."
Try defining the environment variable "ANT_HOME", not "ANT_Home".

/Steve.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org For additional
commands, e-mail: user-***@ant.apache.org
Stephen McConnell
2006-04-02 16:07:41 UTC
Permalink
Post by Jack Chan
-----Original Message-----
Sent: Sunday, 2 April 2006 10:51 PM
To: 'Ant Users List'
Subject: RE: ANT_HOME is set incorrectly or ant could not be
located. Please set ANT_HOME.
Dear Stephen
Thanks for your reply, I had change th name to "ANT_HOME",
but it is still the same, it just shows
" ANT_HOME is set incorrectly or ant could not be located.
Please set ANT_HOME."
When typing ant from console.
I'm sure that when I type "ant" from the console, the system
had go in the c:\ant\bin and call the executable file "ant",
otherwise it will say that the command is not recognize by
the system. But just don't know why it keep saying that the
"ANT_HOME" is set incorrectly!!!
$ echo %ANT_HOME%

If the above returns the value of ANT_HOME then we can assume that your
ANT_HOME definition is good - but if it returned %ANT_HOME% then we know
that your definition isn't good.

/Steve.

Loading...