public class UseProxy
{
public static void main(String args[])
{
System.setProperty("http.proxySet",true);
System.setProperty("http.proxyHost","socks.myhost.com");
System.setProperty("http.proxyPort","1080");
// program continues here
}
}
{
public static void main(String args[])
{
System.setProperty("http.proxySet",true);
System.setProperty("http.proxyHost","socks.myhost.com");
System.setProperty("http.proxyPort","1080");
// program continues here
}
}