String commandText = "cmd /c start D:/index.html";
//String commandText = "cmd /c start osk";
try {
Runtime.getRuntime().exec(commandText);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
Runtime.getRuntime().exec(commandText);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
转载于:https://blog.51cto.com/honly/324870