Re: Ant FTP task NoClassDefFoundError



Karsten Wutzke wrote:

Could not create type ftp due to java.lang.NoClassDefFoundError: org/
apache/commons/net/ftp/FTPClientConfig

I checked my Ant installation, I downloaded the latest 1.7 some weeks
ago (binary zip) and the optional jars all seem to be in the Ant lib
subdir (such as ant-commons-net.jar).

Hello Karsten,

That isn't sufficient. ant-commons-net only contains ant-specific code such as taskdef and other related helper classes that depend on other external libraries. You still require commons-net 1.4.0 and jakarta-oro 2.0.8 or later in order to use the FTP task. The Task docs link to the Library Dependencies.

Regards,

Rob
.