JAVA命令运行cmd命令得到的结果乱码Runtime.getRuntime().exec("");
Process process = Runtime.getRuntime().exec("cmd /c dir c:");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process,getInputStream(),"GBK"));
String line = bufferedReader.readLine();
这样就不会乱码了