各位高手看看我这是什么问题!谢谢了

来源:百度知道 编辑:UC知道 时间:2024/06/14 23:54:32
try {

String[] evp={"path=c:\\turboc2;c:\\turboc2\\include;c:\\turboc2\\lib;%path%"};
String[] commandArgs={"c:\\turboc2\\tcc.exe","c:\\code\\test1.c"};
Process proc= runtime.exec(commandArgs,evp,new File("c:\\code"));

BufferedReader in = new BufferedReader(
new InputStreamReader(proc.getInputStream()));
String text = null;
while((text = in.readLine()) != null) {
System.out.println(text);

}
}
catch(IOException ioError) {
ioError.printStackTrace();

}

}

运行的时候出现错误:

C:\WINDOWS\SYSTEM32\CONFIG.NT. 系统文件不适用于运行 MS-DOS 与 Microsoft Windows 应用程序。 选择“关闭”终止应用程序。
关闭(C) 忽略(I)

这是什么问题啊!!谢谢了

String[] evp={"path=c:\\turboc2;c:\\turboc2\\include;c:\\turboc2\\lib;%path%"};
String[] commandArgs={"c:\\turboc2\\tcc.exe","c:\\code\\test1.c"};
Process proc= runtime.exec(commandArgs,evp,new File("c:\\code"));

BufferedReader in = new BufferedReader(
new InputStreamReader(proc.getInputStream()));
String text = null;
while((text = in.readLine()) != null) {
System.out.println(text);

}
}
catch(IOException ioError) {
ioError.printStackTrace();

}

这是JAVA程序吗

太猛了,我都不知道这是不是JAVA程序