一个简单的小问题,各位高手帮帮忙! Runtime.getRuntime().exec( new String[] {"c:/program files/microsoft office/outlook.exe}); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Runtime r=Runtime.getRuntime(); Process p=null; try { p=r.exec("c:/program files/microsoft office/outlook.exe"); } catch(Exception ex) { System.out.println("fffff"); } 不用插入任何包,因为Runtime属于java.lang.*下试一试这个public class joss{ public static void main(String args[]) { Runtime r=Runtime.getRuntime(); Process p=null; try { p=r.exec("notepad"); } catch(Exception ex) { System.out.println("fffff"); } }} Runtime r=Runtime.getRuntime(); Process p=null; try { p=r.exec("c:/program files/microsoft office/outlook.exe"); } catch(Exception ex) { System.out.println("fffff"); }it's wrongRuntime r=Runtime.getRuntime(); Process p=null; try { p=r.exec("c://program files//microsoft office//outlook.exe"); } catch(Exception ex) { System.out.println("fffff"); } 退出循环语句 关于反射机制与java泛型以及潜在类型机制的问题 建立socket服务的问题!急! 用LinkedList 后怎么调用这个元素里的个别方法? 读大文本数据中的问题 请各位大侠帮我看看这段程序错在哪了? 新手来问 各位大俠幫幫我,很簡單的問題! 高手指教,答者有分 请看看关于线程的两道题。 java网络问题 websphere出现错误!!帮看一下,UP也可!!
Process p=null;
try
{
p=r.exec("c:/program files/microsoft office/outlook.exe");
}
catch(Exception ex)
{
System.out.println("fffff");
}
试一试这个
public class joss
{
public static void main(String args[])
{
Runtime r=Runtime.getRuntime();
Process p=null;
try
{
p=r.exec("notepad");
}
catch(Exception ex)
{
System.out.println("fffff");
}
}
}
Process p=null;
try
{
p=r.exec("c:/program files/microsoft office/outlook.exe");
}
catch(Exception ex)
{
System.out.println("fffff");
}
it's wrong
Runtime r=Runtime.getRuntime();
Process p=null;
try
{
p=r.exec("c://program files//microsoft office//outlook.exe");
}
catch(Exception ex)
{
System.out.println("fffff");
}