Following code sample prints the System properties:

Java Code:
System.out.println("User directory: " + System.getProperty("user.dir"));
System.out.println("File separator: " + System.getProperty("file.separator"));
System.out.println("Class path: " + System.getProperty("java.class.path"));
System.out.println("Class version: " + System.getProperty("java.class.version"));
System.out.println("Java home: " + System.getProperty("java.home"));
System.out.println("Java vendor: " + System.getProperty("java.vendor"));
System.out.println("Java vendor url: " + System.getProperty("java.vendor.url"));
System.out.println("Java version: " + System.getProperty("java.version"));
System.out.println("Line separator: " + System.getProperty("line.separator"));
System.out.println("OS arch: " + System.getProperty("os.arch"));
System.out.println("OS name: " + System.getProperty("os.name"));
System.out.println("Path separator: " + System.getProperty("path.separator"));
System.out.println("User dir: " + System.getProperty("user.dir"));
System.out.println("User home: " + System.getProperty("user.home"));
System.out.println("User name: " + System.getProperty("user.name"));