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\qui ckstart>an t 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.
C:\axis2-1.1.1\samples\qui
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.
I'd imagine you need to raise the version to >= 1.6.5
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
What do you get with
ant -version
ASKER
>>Weblogic (and other environments) has its own internal version of ant. Do you have it installed?
I have tomcat installed
I have tomcat installed
ASKER
This is what I get by typing
ant -version
C:\axis2-1.1.1\samples\qui ckstart>an t -version
Apache Ant version 1.6.5 compiled on June 2 2005
ant -version
C:\axis2-1.1.1\samples\qui
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
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)
ASKER
>>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.
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. getPropert y("java.ex t.dirs"));
That's a VM variable. You can find out what it is at the moment with
System.out.println(System.
ASKER
>>System.out.println(Syste m.getPrope rty("java. ext.dirs") );
This is the result of the above
C:\Program Files\Java\j2re1.4.2_09\li b\ext
This is the result of the above
C:\Program Files\Java\j2re1.4.2_09\li
You might look in there for ant jars
What does
echo %CLASSPATH%
give btw?
What does
echo %CLASSPATH%
give btw?
ASKER
>>What does
>>echo %CLASSPATH%
>>give btw?
C:\>echo %CLASSPATH%
D:\ant\lib\ant.jar;D:\ant\ lib\ant-no deps.jar;D :\ant\lib\ ant-launch er.jar;C:\ Prog
ram Files\Documentum\dctm.jar; D:\Documen tum\config
The first 3 jar files were added just now
>>echo %CLASSPATH%
>>give btw?
C:\>echo %CLASSPATH%
D:\ant\lib\ant.jar;D:\ant\
ram Files\Documentum\dctm.jar;
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 :)
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.
Still less do you want to be *adding* anything to the classpath.
ASKER
Thank You Objects and CEHJ