You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/13 03:36:31 UTC

DO NOT REPLY [Bug 14495] New: - ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14495>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14495

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

           Summary: ANT_HOME is set incorrectly or ant could not be located.
                    Please set ANT_HOME.
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: benhjackson@mindspring.com


I have been able to load ANT successfully at work on my Windows2000 
workstation. I tried loading it on the Windows ME PC at home, and when I try to 
execute  "ant -version", I get the message "ANT_HOME is set incorrectly or ant 
could not be located. Please set ANT_HOME."    I used the following setup 
procedure:
Setting up Ant
1)	Create an empty folder called  c:\java
2)	Move the java std development edition to a directory within this folder
          drag  c:\j2sdk1.4.0_01 folder into   c:\java
	     rename this folder    jdk
3)   Make an empty folder in c:\java called  apps
4)  Use winzip to  extract   jakarta-ant-1.5.1-bin.zip into  c:\java\apps
          it will create a directory called jakarta-ant-1.5.1
          rename this folder ant 
6)	Define the following environment variables
a) Start | Programs | Accessories |  System Tools | System Information ��  
                ��Microsoft Help and Support�� window
      b) menu: Tools | System Configuration Utility
c) select tab:   Environment
d) select variable,  click "New" or  ��Edit�� button as appropriate
edit  PATH adding  ;C:\java\jdk\bin;C:\java\apps\ant\bin
edit  CLASSPATH adding  C:\java\jdk\classes;C:\java\apps\ant
      new JAVA_HOME C:\java\jdk
	new ANT_HOME   C:\java\apps\ant
7)   Determine if the ��ant�� application is working properly
ant �Cversion
    
            It should say  Apache Ant version 1.5.1compiled on Oct 2, 2002
I checked the environment variables very carefully, and they appeared to be set 
correctly. I can go to C:\java\apps\ant\bin  and see the executable "ant".
   I checked the AUTOEXEC.BAT and it looked okay. I looked for other versions 
of ANT. Found no others. I had unloaded xerces xml and dom parsers before into 
a separate directory.  Any suggestions?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>