在需要使用代理的地方添加如下code:
System.getProperties().put("socksProxySet","true"); System.getProperties().put("socksProxyHost","localhost"); System.getProperties().put("socksProxyPort","7575");
java 程序中添加socks 5代理
原文:http://www.cnblogs.com/dorothychai/p/4095772.html