I have Runtime.getRuntime().exec( cmd ) to run an exe file that downloads a content from another server.
but the program fails to connect to another server due to timeout.
seemingly the Runtime.getRuntime().exec( cmd ) does not use the proxy set in the JVM. It works when i set export https_proxy="host:port" manually on the server. Could you please suggest how to resolve it?
System.setProperty( "https.proxyHost", "host" )
System.setProperty( "https.proxyPort", "port" )
Runtime.getRuntime().exec( "test.exe" ) >> fails to download a content from an external server