Dec 08

Set the following system properties

  • http.proxyHost
  • http.proxyPort

java -Dhttp.proxyHost=proxy.objects.com.au -Dhttp.proxyPort=8080 au.com.objects.MyApplication

To do the same programatically use the System classess setProperty() method

   System.setProperty("http.proxyHost", proxyHostname);
   System.setProperty("http.proxyPort", proxyPort);

written by objects \\ tags: , ,