System.out.println("操作系统名="+System.getProperty("os.name"));//Windows 10
System.out.println("java版本="+System.getProperty("java.version"));
System.out.println("java安装目录="+System.getProperty("java.home"));
System.out.println("java类路径="+System.getProperty("java.class.path"));
System.out.println("默认临时文件路径="+System.getProperty("java.io.tmpdir"));
System.out.println("文件分隔符="+System.getProperty("file.separator"));
System.out.println("路径分隔符="+System.getProperty("path.separator"));
System.out.println("行分隔符="+System.getProperty("line.separator"));
System.out.println("用户账户名="+System.getProperty("user.name"));
System.out.println("用户主目录="+System.getProperty("user.home"));
System.out.println("用户当前工作目录="+System.getProperty("user.dir"));