Link to home
Start Free TrialLog in
Avatar of thomas908
thomas908

asked on

Ant core and Ant optional tasks

I am trying to run a build but I am getting the following error

C:\axis2-1.1.1\samples\quickstart>ant generate.service
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.6.2
 optional: 1.6.5

PLease tell me what this error means and how to correct it.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

I'd imagine you need to raise the version to >= 1.6.5
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thomas908
thomas908

ASKER

>>thats typically caused by wl's version of ant

Can you please tell me what "wl's version of ant" means?
BTW it works perfectly fine. Thanks a lot
Weblogic (and other environments) has its own internal version of ant. Do you have it installed?
You need to execute the correct version of Ant and shouldn't need to mess with the classpath

What do you get with

ant -version
>>Weblogic (and other environments) has its own internal version of ant. Do you have it installed?

I have tomcat installed
This is what I get by typing
 ant -version

C:\axis2-1.1.1\samples\quickstart>ant -version
Apache Ant version 1.6.5 compiled on June 2 2005
If there error is removed by altering your classpath, you have one that's incorrect for what you're doing. You shouldn't need to prepend to it
Do

echo %CLASSPATH%

but you may have Ant jars in java.ext.dirs
you already have the correct version of ant installed, the problem is with your classpath :)
If you've got another version of Ant in your cp, you should remove it, or worse in java.ext.dirs (get rid of the jars)
>>If you've got another version of Ant in your cp, you should remove it, or worse in java.ext.dirs (get rid of the jars)
In classpath there are no other ant jar files. Also, I dont have any java.ext.dirs environment variable.
>>Also, I dont have any java.ext.dirs environment variable.

That's a VM variable. You can find out what it is at the moment with

System.out.println(System.getProperty("java.ext.dirs"));
>>System.out.println(System.getProperty("java.ext.dirs"));
This is the result of the above
C:\Program Files\Java\j2re1.4.2_09\lib\ext
You might look in there for ant jars

What does

echo %CLASSPATH%

give btw?
>>What does

>>echo %CLASSPATH%

>>give btw?

C:\>echo %CLASSPATH%
D:\ant\lib\ant.jar;D:\ant\lib\ant-nodeps.jar;D:\ant\lib\ant-launcher.jar;C:\Prog
ram Files\Documentum\dctm.jar;D:\Documentum\config

The first 3 jar files were added just now
rotfl, is this going somewhere :-D you don't want/need to be screwing with your ext directory, nor do you need to remove anything from your classpath
Whats exactly is wrong with the fairly standard way of resolving this type of issue :)
>>nor do you need to remove anything from your classpath

Still less do you want to be *adding* anything to the classpath.
Thank You Objects and CEHJ