(100分)在java Application中如何打开浏览器(IE等等...)并显示指定的页??

mitery 2005-03-10 10:04:13
在java Application中如何打开浏览器(IE等等...)并显示指定的页??
高手指点!谢了先!
先给100分,如果嫌分少,另开再补!!!
...全文
74 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
mitery 2005-03-10
  • 打赏
  • 举报
回复
好的哈!太感谢了!!!!先给100,然后到http://community.csdn.net/Expert/TopicView.asp?id=3804928接20分。一定来哈,别嫌少!以前的问题,自己解决了。不想乱给分!!!
kingfish 2005-03-10
  • 打赏
  • 举报
回复
这样:

Process p = Runtime.getRuntime().exec(
"explorer http://www.itpub.net");
mitery 2005-03-10
  • 打赏
  • 举报
回复
补:
曾看到这样解决:Process p = Runtime.getRuntime().exec(<your command string here> );
your command can be like this:
net start http://www.itpub.net

但是我没能实现!
Process p = Runtime.getRuntime().exec(
"net start http://www.itpub.net"); 就没反应!

50,527

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧