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);
One Ping to “How to tell a Java application to use a proxy server?”
Leave a Reply
You must be logged in to post a comment.
April 2nd, 2009 at 9:12 am
[…] does not use the standard Java system properties for specifying proxy […]