public String getOsName() {
Properties prop = new Properties();
String OS = System.getProperty("os.name").toLowerCase();
if (OS.indexOf("windows") > -1) {
return "windows";
}
else if (OS.indexOf("linux") > -1) {
return "linux";
}
return "";
}
s
if (os.equals("linux")) {
Runtime rt = Runtime.getRuntime();
String[] cmds = {
"sh", "-c", "chmod 777 " + bflj};
try {
rt.exec(cmds);
}
catch (IOException ex2) {
}
}