public class Test
{
public static void main(String[] args)
{
try{
Runtime r=Runtime.getRuntime();
Process p=null;
p=r.exec("explorer http://www.csdn.net");
}
catch(Exception e){
System.out.println("ioexception");
}
}
}
{
public static void main(String[] args)
{
try{
Runtime r=Runtime.getRuntime();
Process p=null;
p=r.exec("explorer http://www.csdn.net");
}
catch(Exception e){
System.out.println("ioexception");
}
}
}
解决方案 »
- 各位大侠求助,有关Iterator问题
- java的基本数据类型应用问题
- 为什么输出的图片是全黑的?
- 如何用Java读取MP3文件的Tag信息?
- 1. java是不是脚本语言?(需要解释器)。 2. 服务器(非物理机器)如apache、iis、x-windows、本身就是后台程序吧?
- 高分求助:SDK 1。4安装中的一个问题!
- 谁有Core java英文电子版?给我发一份,收到就给分!!!
- 哪位给我一个线同步最简单的例子
- 我只是想向大家问一下怎么理解JAVA中的类!?我没有理解类的基础!谢谢大家
- 各位兄弟,请问如何在win2k下安装tomcat服务器
- jar.exe的问提。
- 树型用户结构的查询问题(高分请教)
this.getAppletContext().showDocument(URL url,String target)
AppletContext appletcontext = applet.getAppletContext();
URL url = null;
try
{
url = new URL(s);
}
catch(MalformedURLException malformedurlexception)
{
DisplayMsg(malformedurlexception.getMessage());
}
appletcontext.showDocument(url, "_self");