title: How to get default proxy settings in java program (not applet)?
body: <p>I've just gone through the web searching how to get system proxy settings. I've found:</p>
  
  <pre><code>System.setProperty("java.net.useSystemProxies", "true");
  </code></pre>
  
  <p>but it does nothing. I have a proxy settings in my corpo network but the code that shows the proxy list:</p>
  
  <pre><code>ProxySelector.getDefault().select(new URI("http://foo/bar"))) 
  </code></pre>
  
  <p>says it's only one proxy "DIRECT". I don't want to provide the proxy settings by hand when it's already done. Is there a way to make JVM to provide proxy settings from OS/browser to the Java program (not applet)?</p>
  
  <p>Ok,I think I got it: my browser proxy is set up by some script, defined in: </p>
  
  <blockquote>
    <p>Internet Properties/Connections/LAN Settings/Use automatic
    configuration script</p>
  </blockquote>
  
  <p>Probably, that's why Java cannot list proxy properly, even it's used in the browser. Sad, that JVM cannot parse the script and provide these settings...</p>