3

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?

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

2 Comments

I have proxy already set. What I want is to remove proxy settings and get direct connection.
I know this question is old... but nobody mentioned an easy way to bypass proxy in your applet CODE... There's no need to start it with any special arguments - if your applet is not going to use proxy, then it should call appropriate constructors (like Socket(Proxy) or URLConnection(Proxy)) with the argument Proxy.NO_PROXY. docs.oracle.com/javase/7/docs/api/java/net/Proxy.html#NO_PROXY
-1

open java control panel using

javaws -viewer

General-> Network Settings -> direct Connetcion now direct connection is set

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.