One of hundreds of answers available with our premium content service.
A: The variables available through the standard system Properties set do not include any custom environment variables stored by the operating system. However, it is possible to add custom variables to this property set with the Java command line flag -D and pass these properties to the database driver manager. With variable substitution, it is then possible to use operating system variables for these values, as detailed below.
… full answer hidden
Premium members click below for full answer
How can I use system variables to make a database connection?