File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes problem in deplying the file on server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "problem in deplying the file on server" Watch "problem in deplying the file on server" New topic

problem in deplying the file on server

saidi Bandi
Ranch Hand

Joined: Apr 07, 2007
Posts: 57
HI ,

i am trying to deply the code by using ant script in remote machine by using FTP?

i found the below code from one of the site on google.

when i run the build file i am getting the follwing error:

E:\BuildDomain\Build1.xml:98: The following error occurred while executing this line:
E:\BuildDomain\Build1.xml:113: Could not create type ftp due to java.lang.NoClassDefFoun
dError: org/apache/commons/net/ftp/FTPClientConfig

here my doubt is org/apache/commons/net/ftp/FTPClientConfig this file is mandatory to FTP the files to remote machine, or is there any alternative way for this?

Peter Johnson

Joined: May 14, 2008
Posts: 5812

Did you read the doc on the <ftp> task and ensure that you accounted for all of the dependencies? The docs tell you which exteranl libraries you need for that task.

By the way, please use the 'code' tag when posting source code, makes it much easier to read.

JBoss In Action
I agree. Here's the link:
subject: problem in deplying the file on server
Similar Threads
What does ${user.home} means ? Where is build .properties ?
Ant FPT missing class ...
ftp error
problems with ant ftp task in maven