Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java proxy settings

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?

like image 298
michael nesterenko Avatar asked Feb 19 '26 22:02

michael nesterenko


1 Answers

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 ...

like image 103
Thomas Avatar answered Feb 21 '26 10:02

Thomas