Try:
FTPClient ftp = new FTPClient();
ftp.setConnectMode(FTPConnectMode.ACTIVE); // This assumes that the default mode is FTPConnectMode.PASV
...
Note: I have not tried the above code.
If that doesn't clear it up, then how about just ignoring the exception. I've noticed that some clients complaign that PASV isn't implemented, but the transfer goes ahead just fine. I guess, ignoring the exception would reguire a
kludge, but it's not always a pretty world :wink:
One possible problem with my second suggestion, though -- it would probably be dependent on the text of the error message, which could change in future versions.