Solved

ANT version conflict

Posted on 2009-07-09
6
252 Views
Last Modified: 2013-11-24
I have extracted ant 1.7.1 into C:\ant folder.

I have set the ANT_HOME as c:\ant and in path have mentioned c:\ant\bin.

Now from the prompt when I do
ant -version
it shows me "Apache Ant version 1.6.2 compiled on July 16 2004"
I can't make out from where it is getting this version. Path env. variable does not refer to any other ant.
In case I remove the ant directory and then execute
"ant -version" command, it says that "ant" is not a recognized command. So although it is looking into the ant folder but somehow getting the ant version from some other jar file.

Please let me know how to resolve this problem.

thank you
0
Comment
Question by:ank9
6 Comments
 
LVL 20

Expert Comment

by:a_b
ID: 24820404
Did you have 1.6 installed previously? Are you sure you have removed that?
0
 
LVL 6

Expert Comment

by:jwenting
ID: 24820453
sounds more like he installed a 1.6 version while being under the mistaken impression it was a 1.7 version.
IF there's indeed no 1.6 version on the path his script is using, as he's asserting.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24820656
Please post the output of the following:
echo %PATH%
 
 
echo %ANT_HOME%

Open in new window

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:ank9
ID: 24821288
C:\Documents and Settings>echo %PATH%
c:\ant\bin;C:\Program Files\Documentum\Shared;C:\WINDOWS\system32;C:\WINDOWS;C:\
WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;c:\Program Files\Microsoft SQL
 Server\90\Tools\binn\;C:\Program Files\ActivIdentity\ActivClient\;C:\jdk\bin;C:
\Program Files\QuickTime\QTSystem\;C:\Program Files\cvsnt


C:\Documents and Settings>echo %ANT_HOME%
c:\ant
0
 
LVL 8

Accepted Solution

by:
thomas908 earned 500 total points
ID: 24821299
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24821365
Where you actually set  PATH, you should probably use %ANT_HOME%\bin . That comment is just for your reference

Your current problem may be due to having extracted the wrong version. Start again
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question