import java.lang.*;
public class TestExec{
public static void main(String args[])
{
try{
Process pro = Runtime.getRuntime().exec("explorer http://localhost");
}
catch(Exception ex){
System.out.println("error");
}
}
}搞定,给分吧,呵呵!
public class TestExec{
public static void main(String args[])
{
try{
Process pro = Runtime.getRuntime().exec("explorer http://localhost");
}
catch(Exception ex){
System.out.println("error");
}
}
}搞定,给分吧,呵呵!
我的url是这样的:http://localhost:8080/node.jsp?id=1
结果弹出窗口:
路径'1'不存在,或者是无效目录
这个有解决的方法吗?
可能用explorer 打开url时对url的解析有问题,用start就可以了