Windows 7 sometimes breaks FTP connections on Java 7 if firewall is enabled.

Solution:

用管理员身份,在cmd命令行输入:

netsh advfirewall set global StatefulFTP disable

会关闭防火墙,从而解决问题。

原文地址:https://www.cnblogs.com/sophia194910/p/5416180.html