Java tutorial
public class MainClass { public static void main(String[] args) { System.out.println(" OS name: " + System.getProperty("os.name", "not specified")); System.out.println(" JVM Version: " + System.getProperty("java.version", "not specified")); System.out.println(" user.home: " + System.getProperty("user.home", "not specified")); System.out.println(" java.home: " + System.getProperty("java.home", "not specified")); } }