JAVA怎么检测程序当前运行的系统是linux还是windows

public class pp{
        public static void main(String args[]){


        String os=System.getProperty("os.name");
        System.out.println(os);
        }
}

猜你喜欢

转载自kent-mu.iteye.com/blog/1902927