Opening Terminal in linux using java

Reply

Join Date: Oct 2008
Posts: 60
Reputation: britto is an unknown quantity at this point 
Solved Threads: 0
britto britto is offline Offline
Junior Poster in Training

Opening Terminal in linux using java

 
0
  #1
Apr 23rd, 2009
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...
  1. ProcessBuilder pb = new ProcessBuilder("gnome-terminal","-e",home+"/MyProjectFiles/"+filename+".out");
  2. Process p = pb.start();
the problem is the terminal starts and closes after execution....
how to prevent that....
thanks in advance
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC