Hello guys,
what i really d'like to do is to take the outputstream from a process and print it to a string. i 'm foremly new in java and i have several problems...
Thanks in advance!

This is my code:

Process calc_proc;
Runtime calc = Runtime.getRuntime();
String command[]= {"java","-version"};
calc_proc = calc.exec(command);
StringBuffer strb = new StringBuffer();
String outb = calc_proc.getOutputStream().toString();
//DataInputStream inStream = new DataInputStream (calc_proc.getOutputStream());
//String outB = new StringBuffer(100).calc_proc.getOutputStream().toString();