thanks, but this does not help.
I have the lines of code:
Code:
InputStream inputStream = process.getInputStream();
InputStream errorStream = process.getErrorStream();
readAndPrintInputStream(inputStream);
readAndPrintInputStream(errorStream);
Code:
private static void readAndPrintInputStream(InputStream inputStream) {
try {
int size = inputStream.available();
byte[] bytes = new byte[size];
inputStream.read(bytes);
System.out.println("input: " + new String(bytes));
} catch (IOException e) {
e.printStackTrace();
}
}
nothing gets printed and I still see the pause.
Any other ideas?