我在测试程序中写了如下代码:
import java.io.*;public class test{ public static void main(String args[]){
try{
System.out.println("start:");
Runtime.getRuntime().exec("C:/TopCheer/myJava/secondone.exe");
System.out.println("end");
}catch(IOException e)
{
  System.err.println("Cannot start secondone.exe");
  System.exit(1);
}
}
}
但是执行程序的时候报错:c:\windows\system32\ntvdm.exe 设置应用程序环境时出错.
这个错可能和操作系统有关,我用的是xp系统。不知哪位大虾能够帮小妹解决这个问题,小妹感激不尽。