Solved

ANT version conflict

Posted on 2009-07-09
6
251 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
array6 challenfge 6 66
mapAB Challlenge 35 89
JAVA part two 5 42
Recommendation vb6 to vb.net or others 14 44
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…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now