Snippets tagged “system-properties”
3 snippets use this tag.
- How do I find out what keystore my JVM is using?Java
To find out which keystore the Java Virtual Machine (JVM) is using, you can use the javax.net.ssl.KeyManagerFactory class and the getDefaultAlgorithm method.
- How do I set environment variables from Java?Java
To set an environment variable from Java, you can use the System.setProperty() method.
- How do I set the proxy to be used by the JVMJava
To set the proxy to be used by the Java Virtual Machine (JVM), you can use the -Dhttp.proxyHost, -Dhttp.proxyPort, and -Dhttp.nonProxyHosts options when starting the JVM.