In a environment where you must access the external network by proxy, the program written by Java will not be able to connect properly, and the proxy implementation accesses is set in the code. The agent settings are set by several system.getProperties (). Put ("proxyset", "true"); system.getproperties (). PUT ("proxyhost", "host"); system.getproperties (). PUT ("Proxyport", "Port"); if it is an FTP agent, as follows: system.getProperties (). put ("ftpproxyset", "true"); system.getproperties (). put ("ftpproxyhost", "host" ); System.getproperties (). PUT ("ftpproxyport", "port");