获取当前系统名称、获取当前操作系统信息 String os = System.getProperties().getProperty("os.name"); if (os.contains("Windows")){ }else if (os.contains("Linux")){