I have global proxy settings made from Java control applet. It takes proxy settings from browser. I need to run a Java application that does not use global proxy settings, it has to use direct connection.
How can I do it with command line arguments?
Did you have a look here: http://download.oracle.com/javase/6/docs/technotes/guides/net/proxies.html ?
You can set the system properties from the command line: java ... -Dhttp.proxyHost=your-proxy.example.com ...
Socket(Proxy) or URLConnection(Proxy)) with the argument Proxy.NO_PROXY. docs.oracle.com/javase/7/docs/api/java/net/Proxy.html#NO_PROXY