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; } } --------------------- 本文来自 z278718149 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/z278718149/article/details/50735910?utm_source=copy
Java 判断当前系统为Window或者Linux
猜你喜欢
转载自www.cnblogs.com/eason-d/p/9687918.html
今日推荐
周排行