Can any one help me with some referenes as to how I can check different values passed to the JVM. For example if I invoke the jvm with the following options “-Djava.library.path=lib“, how do I check what is passed as library arguments to the JVM.
Can any one help me with some referenes as to how I can check
Share
The things set by the
-Dflag are called sytem properties. You can retrieve them usingSystem.getProperty. eg:There are a few other methods in
Systemthat may be of interest you you, likeSystem.getPropertieswhich returns the entire set of system properties.Note that there are some system properties that will have values even without being set by the
-Dflag.