Java environment variables and system properties (including proxies)
Reference
Time Zone Settings in the JRE (Oracle jdk 9)
https://docs.oracle.com/javase/9/troubleshoot/time-zone-settings-jre.htm
System properties
user.timezone
You can explicitly set a default time zone on the command line by using the Java system property called user.timezone.
Eg: -Duser.timezone=Europe/Madrid
How-to make Java output messages in English instead of the default locale language
Set the environment variable JAVA_TOOL_OPTIONS, eg:
set JAVA_TOOL_OPTIONS=-Duser.country=US -Duser.language=en -Dhttp.proxyHost=%IPV4_ADDRESS% -Dhttp.proxyPort=3128 -Dhttps.proxyHost=%IPV4_ADDRESS% -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts="localhost|127.*|[::1]"
que un cop resoltes le varialbes quedaria, eg, així:
JAVA_TOOL_OPTIONS=-Duser.country=US -Duser.language=en -Dhttp.proxyHost=172.23.200.238 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=172.23.200.238 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts="localhost|127.*|[::1]"
Java Networking and Proxies
Reference documentation for Java 8 at:
http://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html
Sample 1 (command line or JAVA_TOOL_OPTIONS environment variable):
-Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts="localhost|*.uoc.es" -Dhttps.proxyHost=localhost -Dhttps.proxyPort=3128
Sample 2 (program):
System.setProperty("http.proxyHost", "localhost");
System.setProperty("http.proxyPort", "3128");
System.setProperty("http.nonProxyHosts", "localhost|*.uoc.es");
System.setProperty("https.proxyHost", "localhost");
System.setProperty("https.proxyPort", "3128");
Properties:
http.proxyHost
http.proxyPort
http.nonProxyHosts
https.proxyHost
https.proxyPort
ftp.proxHost
ftp.proxyPort
ftp.nonProxyHosts
socksProxyHost
socksProxyPort