Solved

ANT version conflict

Posted on 2009-07-09
6
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

 

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

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 …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

695 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