如何自动重新启动一个进程(急) 不知道用JAVA的exec()方法行不行?exec()是调用外部的可执行文件(如果要启动进程的话,肯定要调用WINDOWS的内部命令);你可以加个判断,如果没有返回,就执行exec()。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不知这个是不是你想样的。 public void Restart(){ do{ do{ //没有返回 Restart() } while(true) try { Thread.sleep(myPaintTime); } catch (Exception _ex) { System.out.println("An error has happened"); } } while (true); } struts 跳转问题 请问哪里有J2SE部分基础练习题下载? 请教关于System.out.println的问题(菜鸟请教) 如何覆盖的写文件? 为什么JList里的label要设成透明的? [求助]用JCreator 编译robocode的问题!!!进者有分呀 使用stylereport中文导出PDF乱码如何解决呢? cmd下设定classpath的问题 大家救命呀,jbuilder无缘无故罢工 谁有editplus的注册机?给我一个注册号。 请教画线问题. Java App 在 IBM AIX 上的中文显示问题
do{
do{
//没有返回
Restart()
}
while(true) try {
Thread.sleep(myPaintTime);
}
catch (Exception _ex) {
System.out.println("An error has happened");
}
}
while (true);
}