I need to set up proxy authentication against a SOCKS proxy. I found out this post giving instructions that appear to work with common HTTP proxies.
I tried
System.setProperty("socksProxyHost", "socks.xyz.com"); System.setProperty("socksProxyPort", "1000");
and it's working fine.