TrainBeaser for iPhone
The moose likes Sockets and Internet Protocols and the fly likes FTP client in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "FTP client in java" Watch "FTP client in java" New topic
Author

FTP client in java

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2559

I want to experiment with FTP protocol using java. How can I make an FTP client using java?
Do I need to use URL and URLConnection class or do I have to write it using raw sockets? The URL class has constructors requiring file name. To start with, I would like my client to list all the files from the remote directory. How can I do this?
I have already searched the net with google, it has few full featured apps using java, as for me I would like to know few steps that I need to follow to make a simple client.
TIA,
- Manish
Laudney Ren
Ranch Hand

Joined: Jan 06, 2002
Posts: 111
There is a java ftp client published under GNU license. You can get it at http://www.enterprisedt.com/downloads/ftp.html


" Veni, vidi, vici "<br />" I came, I saw, I conquered "
Laudney Ren
Ranch Hand

Joined: Jan 06, 2002
Posts: 111
Jeff Holmes contributed a Socket based FTPClient. It's not fully complete but, should have enough for your task http://www.javaranch.com/ubb/Forum38/HTML/000066.html
 
 
subject: FTP client in java
 
Threads others viewed
FTP Upload
Running Thread in Servlet container
how to download files from a remote server via java code?
Writing FTP Client in Java
FTP in Java
developer file tools