public static boolean isOSLinux() {
Properties prop = System.getProperties();
String os = prop.getProperty("os.name");
if (os != null && os.toLowerCase().indexOf("linux") > -1) {
return true;
} else {
return false;
}
}
Java判断运行系统是linux还是windows
最新推荐文章于 2023-11-28 16:55:40 发布