Solved

ANT version conflict

Posted on 2009-07-09
6
253 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

730 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