This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 64
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: 5852

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
Have you checked out Aspose?
subject: problem in deplying the file on server
jQuery in Action, 3rd edition