I used the Google Data API, and the only way I got the proxy settings was to provide ALL parameters related to the proxy server, even if they are set as empty:
/usr/java/jdk1.7.0_04/bin/java -Dhttp.proxyHost=10.128.128.13 -Dhttp.proxyPassword -Dhttp.proxyPort=80 -Dhttp.proxyUserName -Dhttps.proxyHost=10.128.128.13 -Dhttps.proxyPassword -Dhttps.proxyPort=80 -Dhttps.proxyUserName com.stackoverflow.Runner
If the username and password are NOT required, and the same http and https servers should be the same, as well as the port number (if this is your case). Please note that the same HTTP proxy is also provided as an HTTPS server, as well as its port number (link from https://code.google.com/p/syncnotes2google/issues/detail?id=2#c16 ).
If your Java class has an instance of the "URL" class, it must select these configurations ...
source share