0

I need java to use a socks5 proxy.
I found the instructions.
How do I get to the $ prompt to enter them?
Google completely fails at this.

$ System.getProperties().put( "proxySet", "true" );
$ System.getProperties().put( "socksProxyHost", "127.0.0.1" );
$ System.getProperties().put( "socksProxyPort", "1234" );

Thanks

Justin
  • 1
  • You know you can run this without a prompt, right ? Or pass these as arguments to your JVM when you launch it – Dici Sep 14 '15 at 19:26
  • How do I launch the JVM? (What exactly do I type in the Windows command prompt.) – Justin Sep 14 '15 at 19:34
  • I just want to make Java use a proxy server, regardless of the browsers settings. I'm launching a java app that you start with a URL. The app runs it its own window. – Justin Sep 14 '15 at 19:36
  • How do you run this thing ? – Dici Sep 14 '15 at 19:37
  • I found this, which is related to what you're asking. http://stackoverflow.com/questions/7351533/set-multiple-system-properties-java-command-line – Ben M. Sep 14 '15 at 19:44
  • The comment to the 2nd answer there (9 upvotes) is what I want - but again - how do I get to the $ prompt? – Justin Sep 14 '15 at 19:57

0 Answers0