How to print all the Java system properties
Briefly

You print Java system properties with the System.getProperties() method.
Here's the code I used to print all the Java system properties: Properties p = System.getProperties(); Enumeration keys = p.keys(); while (keys.hasMoreElements()) { String key = (String)keys.nextElement(); String value = (String)p.get(key); System.out.println(key + " : " + value); }
And here's the output from that section of code: java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries java.vm.version: 1.5.0_07-87 awt.nativeDoubleBuffering: true gopherProxySet: false java.vm.vendor: "Apple Computer, Inc." java.vendor.url: http://apple.com/ path.separator: : java.vm.name: Java HotSpot(TM) Client VM file.encoding.pkg: sun.io user.country: US sun.os.patch.level: unknown java.vm.specification.name: Java Virtual Machine Specification user.dir: /Users/al/DD/Projects/TameSwing java.runtime.version: 1.5.0_07-164 java.awt.graphicsenv: apple.awt.CGraphicsEnvironment java.endorsed.dirs: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed os.arch: i386 java.io.tm
Read at Alvinalexander
[
|
]