Eclipse – org/apache/commons/codec/DecoderException when integrating Ant-Contrib into Eclipse

antant-contribeclipse

I've tried to integrate Ant-Contrib 1.0b3 into Eclipse by adding the ant-contrib-1.0b3.jar and the appendant jar-files from the libs-directory to the "Global Entries"-section of the Ant-Runtime-preferences page in Eclipse.

For tasks that don't need the libs, such as propertyregex, this works fine.
But when I try to use the postMethod task I get the following error:

java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException

Any suggestions on what to do to resolve this?

Best Solution

It looks like your rig doesn't include the Apache Commons Codec which must be a dependency of ant-contrib.

According to the dependencies here you might also need commons-logging, but you've probably already got that.

Related Question