Could someone help me with Ant? I want to deploy some files through FTP but i still can't due to error:
Could not create type ftp due to java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClientConfig
In ant lib directory I have:
Thanks for any help.
I assume that you are using ant 1.8.
You need apache-commons-net-2.0.jar
and jakarta-oro-2.0.8.jar
in the lib folder as listed in this blogpost and in the docs(Although the doc says 1.4 should be enough)
In Eclipse:
Window > Preferences > Ant > Runtime > Classpath Tab > Ant Home Entries (Default) > Add External jars
1.commons-net-2.0.jar
2.oro-2.0.8.jar
It worked for me :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With