?
Solved

ANT version conflict

Posted on 2009-07-09
6
Medium Priority
?
255 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
TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

 

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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This video teaches viewers about errors in exception handling.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

770 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