我想在点help选项的时候打开一个在同文件夹下的1.txt
这个写对么~
if(e.getSource().equals(help))
{
try
{
Runtime.getRuntime().exec("1.txt");
}
catch(Exception exp)
{
exp.printStackTrace();
}运行的时候出现
java.io.IOException: CreateProcess: 1.txt error=193
请问这是什么原因啊~
这个写对么~
if(e.getSource().equals(help))
{
try
{
Runtime.getRuntime().exec("1.txt");
}
catch(Exception exp)
{
exp.printStackTrace();
}运行的时候出现
java.io.IOException: CreateProcess: 1.txt error=193
请问这是什么原因啊~
Runtime.getRuntime().exec(openfile);//notepad.exe是记事本程序,1.txt是参数