Problems with FTP Client Server
I m having problems,performing FTPof a file to another machine. Can someone tell me how to use FTPClient?
import java.io.*;
import java.net.*;
//import sun.net.*;
public class Example1
{
public static void main(String args[]) throws MalformedURLException
{
FtpClient FTP = new FtpClient();
ftp.openServer("shuttle");
ftp.login("Administrator","mdroy");
ftp.cd("c:\DDDD");
ftp.ascii();
OutputStream theFile = ftp.put("c:\Madhu\sports\2003\feb\archive_display.html");
}
}
It says it cannot resolve symbol FtpClient do I have to download any jar file. If yes then where do i download it from and here do i place it and how do i make my program recognize it.
I tried using FTP Client Library from a site suggested on the ranch but to no avail. So if someone can send me the code for FTP client and also tell me if any jar files are to be installed, if yes where?