I have written an application in jsoup that needs to connect through company proxy. I have tried giving the auto proxy config url in the java settings in control panel(XP) but it still times out the connection. What else do I need to do
            Asked
            
        
        
            Active
            
        
            Viewed 3,247 times
        
    2 Answers
2
            
            
        Proxy settings in Java Control Panel affect only Java Web Start applications and applets.
For regular Java applications, you should use the following properties to configure proxy:
http.proxyHost,http.proxyPort, andhttp.nonProxyHosts.https.proxyHost,https.proxyPort(HTTPS handler useshttp.nonProxyHosts).ftp.proxyHost,ftp.proxyPort, andftp.nonProxyHosts.
See Networking Properties for more details on configuring behavior of the various classes of the java.net package.
There's no built-in way to use automatic proxy configuration for regular Java applications. See answers to this question for various options to do it.
        Community
        
- 1
 - 1
 
        Alexey Ivanov
        
- 11,541
 - 4
 - 39
 - 68
 
1
            You must set the java environment proxy settings.
Check the Oracle guide.
        Udo Held
        
- 12,314
 - 11
 - 67
 - 93