hi.....
im trying to run c,c++ programs in linux using java code.....
i have compiled the program and the .out file is also created....
im using the following code...
ProcessBuilder pb = new ProcessBuilder("gnome-terminal","-e",home+"/MyProjectFiles/"+filename+".out");
Process p = pb.start();
the problem is the terminal starts and closes after execution....
how to prevent that....
thanks in advance