標題: How to use “cd” command using Java runtime on Linux? [打印本頁] 作者: woff 時間: 2014-7-24 02:35 標題: How to use “cd” command using Java runtime on Linux? 當用下面敘述時會錯誤
String[] command = new String[]{"cd",path};
Process child = Runtime.getRuntime().exec(command, null);