org.dstadler.commons.util.PrintSystemProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-dost Show documentation
Show all versions of commons-dost Show documentation
Common utilities I find useful in many of my projects.
package org.dstadler.commons.util;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* A simple application which prints out the current Java system properties.
*
* @author dominik.stadler
*
*/
public class PrintSystemProperties {
public static void main(String[] args) throws IOException {
try (FileOutputStream out = new FileOutputStream("SystemProperties.log")) {
System.getProperties().store(out, "Current System Properties");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy