Alex Kravets Messages: 339 Registered: November 2009
Senior Member
Hi,
I am trying to executing ANT's ftp task from commons net libraries. When I add jars in Eclipse and execute action, task executes. Running it from Hudson I get error
Could not create type ftp due to java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClientConfig
In my ant script I am using other libraries such as svn and am able to execute them by defining them using typedef ant call. Is there something extra I have to do to make it work outside of Eclipse? I tried to put jars into lib directory of where ANT is installed, but this does not work.
Hello,
what was your solution, I am having the exact same problem. All threads point in putting
common-net-1.4.1.jar and
jakarta-oro-2.0.8.jar
into my "ant" plugin folder (C:\eclipse-3.7.2-win32\plugins\org.apache.ant_1.8.2.v20120109-1030 in my case)
My guess is that you will need to install some extra bundles into your headless bucky to make this run. Manually putting
stuff in under the plugins folder doesn't seem right. That's not what the IDE install is doing anyway.
- thomas
On 2012-09-19 21:52, Daniel Desjardins wrote:
> Hello,
> what was your solution, I am having the exact same problem. All threads point in putting common-net-1.4.1.jar and
> jakarta-oro-2.0.8.jar into my "ant" plugin folder (C:\eclipse-3.7.2-win32\plugins\org.apache.ant_1.8.2.v20120109-1030 in
> my case)
>
> But I still get the error after.
>
> Any tip would really help.
>
> Thanks!
But that did not work - the jars files were never loaded. So I ended up adding the needed jars on the server to ${ANT_HOME}/lib directory and running ftp tasks like that.