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

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 :)

This question is related to java ftp client

The answer is


I have successfully used the Enterprise DT FTP library, which is free and open source. I can't compare it to other libraries (like the Apache Commons Net library) since I haven't used them. It does provide a simple upgrade path to SFTP (over SSH) and FTPS (over SSL), though that is a pay-for commercial product.


I used Apache Commons VFS

cya


I was downloading video files. Apache's FTPClient fumbled, it downloaded the video reasonably fast. but when I tried to play the video back, it lost chunks out of the middle of the video. ftp4j would download the whole video with no loss.

ftp4j ftw


I used Apache Commons VFS

cya


Commons-net surely. :) Most open source projects use it these days.

yc


Yes, EnterpriseDT's edtFTPj is stable (first released in 2000), has all the features you might need, and is open source as well.

It's used in a bunch of open source projects (as well as in many commercial projects), and is acknowledged to be one of the fastest client libraries around.

As another poster noted, if you do wish to upgrade to SFTP and/or FTPS, it is a simple upgrade path with very few code changes required.


ftp4j is the best one, both for features and license:

http://www.sauronsoftware.it/projects/ftp4j/


You have also this 2006 article which lists different options for FTP clients.

commons-net is good, but FTP-GO can give you some of the more advanced features you are looking for.

kagi Ftp-Go


Commons-net surely. :) Most open source projects use it these days.

yc


I was downloading video files. Apache's FTPClient fumbled, it downloaded the video reasonably fast. but when I tried to play the video back, it lost chunks out of the middle of the video. ftp4j would download the whole video with no loss.

ftp4j ftw


I used Apache Commons VFS

cya


You have also this 2006 article which lists different options for FTP clients.

commons-net is good, but FTP-GO can give you some of the more advanced features you are looking for.

kagi Ftp-Go


Apache commons-nets get updates more frequently recently, while Enterprise DT library seems to update even more frequently.


Commons-net surely. :) Most open source projects use it these days.

yc


I have successfully used the Enterprise DT FTP library, which is free and open source. I can't compare it to other libraries (like the Apache Commons Net library) since I haven't used them. It does provide a simple upgrade path to SFTP (over SSH) and FTPS (over SSL), though that is a pay-for commercial product.


ftp4j is the best one, both for features and license:

http://www.sauronsoftware.it/projects/ftp4j/


Yes, EnterpriseDT's edtFTPj is stable (first released in 2000), has all the features you might need, and is open source as well.

It's used in a bunch of open source projects (as well as in many commercial projects), and is acknowledged to be one of the fastest client libraries around.

As another poster noted, if you do wish to upgrade to SFTP and/or FTPS, it is a simple upgrade path with very few code changes required.


I used Apache Commons VFS

cya


You have also this 2006 article which lists different options for FTP clients.

commons-net is good, but FTP-GO can give you some of the more advanced features you are looking for.

kagi Ftp-Go


I have successfully used the Enterprise DT FTP library, which is free and open source. I can't compare it to other libraries (like the Apache Commons Net library) since I haven't used them. It does provide a simple upgrade path to SFTP (over SSH) and FTPS (over SSL), though that is a pay-for commercial product.


Apache commons-nets get updates more frequently recently, while Enterprise DT library seems to update even more frequently.


I have successfully used the Enterprise DT FTP library, which is free and open source. I can't compare it to other libraries (like the Apache Commons Net library) since I haven't used them. It does provide a simple upgrade path to SFTP (over SSH) and FTPS (over SSL), though that is a pay-for commercial product.


Apache commons-nets get updates more frequently recently, while Enterprise DT library seems to update even more frequently.


Examples related to java

Under what circumstances can I call findViewById with an Options Menu / Action Bar item? How much should a function trust another function How to implement a simple scenario the OO way Two constructors How do I get some variable from another class in Java? this in equals method How to split a string in two and store it in a field How to do perspective fixing? String index out of range: 4 My eclipse won't open, i download the bundle pack it keeps saying error log

Examples related to ftp

Uploading into folder in FTP? Wordpress plugin install: Could not create directory How to setup FTP on xampp Google Drive as FTP Server Fatal error: Call to undefined function mysqli_connect() Filezilla FTP Server Fails to Retrieve Directory Listing FTP/SFTP access to an Amazon S3 Bucket 200 PORT command successful. Consider using PASV. 425 Failed to establish connection PowerShell Connect to FTP server and get files How to use passive FTP mode in Windows command prompt?

Examples related to client

Java sending and receiving file (byte[]) over sockets Is there a way to only install the mysql client (Linux)? Should a 502 HTTP status code be used if a proxy receives no response at all? Rails: Get Client IP address JAX-WS client : what's the correct path to access the local WSDL? Graphical HTTP client for windows How do I turn off autocommit for a MySQL client? Getting the screen resolution using PHP How to get a user's client IP address in ASP.NET? What Java FTP client library should I use?