Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Java FTP client library should I use? [closed]

Tags:

java

client

ftp

Since I received no positives answers to my last question. I will try to write a Java FTP upload applet myself.

My question is: "Can you recommend a Java FTP client library for me to use?"

I want it to be:

  • stable
  • able to handle passive and active modes
  • able to provide upload progress information
  • throw catchable exceptions if something went wrong (especially when an upload does not succeed)
  • cheap/free to use, preferably open source

I found this overview of some libraries, but since this article is from 2003, maybe some new developments have happened :)

like image 277
Tader Avatar asked Nov 17 '08 09:11

Tader


People also ask

What is FTPClient in Java?

FTPClient encapsulates all the functionality necessary to store and retrieve files from an FTP server. This class takes care of all low level details of interacting with an FTP server and provides a convenient higher level interface.

How do I connect to FTP using Java?

To start using FTP with Java, you will need to create a new FTPClient and then connect and login to the server using . connect(String server, int port) and . login(String username, String password) .

Does Apache FTPClient support SFTP?

Apache FTPClient doesn't support SFTP at the moment.


1 Answers

Check out Apache commons-net, which contains FTP utilities. Off the top of my head I'm not sure if it meets all of your requirements, but it's certainly free!

like image 155
Leigh Avatar answered Sep 21 '22 12:09

Leigh