import java.net.URISyntaxException;
public class test {
public static void main(String[] args) {
String cmdStr = "cmd /c start iexplore http://www.baidu.com/";
try {
Runtime.getRuntime().exec(cmdStr);
} catch (IOException e) {
e.printStackTrace();
}
try {
URI uri=new URI("http://www.baidu.com/");
Desktop.getDesktop().browse(uri);
} catch (IOException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
}
}