0

I am using a java application which requires internet. But I have internet through proxy so application doesn't work. I am looking for a way to enable proxy in JVM (note i can't change it by code , i doesn't have source code). Kindly let me know how i can do that through command prompt on windows. Thanks

0

1 Answer 1

1
 java -Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8800 yourprogramhere
Sign up to request clarification or add additional context in comments.

3 Comments

I know this works if the application is using the JVM's URLConnection classes. Does this work if the client application is using Apache HttpClient?
Not sure, but give it a try
But it does work. When i type it, cmd shows java help window (i.e. what we get by typing "java help" in cmd) .

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.