Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » eclipse hang when exec program
eclipse hang when exec program [message #309601] Thu, 02 November 2006 04:41 Go to previous message
Eclipse User
Originally posted by: joneo_ytk81.hotmail.com

hi all,

i'm having problem with eclipse where it hang when execute a program using
the ProcessBuilder. Below is actually how i create the process and print
out the process details in console view. FYI, i didnt implements any
interfaces or classes. i just create a class which extend from Action. Do
i miss out anything? Please advice. thanks.

ProcessBuilder pb = new ProcessBuilder(EXECUTE.toString(),"-g");
pb.directory(path.toFile());
Process p = pb.start();
InputStream is = p.getInputStream();
int c;
StringBuffer sb = new StringBuffer();
while((c=is.read()) != -1)
{
sb.append((char)c);
}
System.out.println(sb.toString());
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon9.gif
Previous Topic:jobs are not executing on a pluging inside RCP
Next Topic:run a process in eclipse plugin console
Goto Forum:
  


Current Time: Sat May 25 22:28:40 EDT 2013

Powered by FUDForum. Page generated in 0.02173 seconds