In Java we use System.setProperty() method to set some system properties. According to this article the use of system properties is bit tricky.
System
Their scope is the running JVM, but unless you have some esoteric class loader issues a static variable with a properties object will do the same thing, and with the opportunity to syncronize or do whatever else you need.