0
Process process = Runtime.getRuntime().exec("C:/chess/h.exe");
Scanner scanner = new Scanner(process.getInputStream());
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));
writer.write("uci");
while (true) System.out.println(scanner.nextLine());

It writes:

 Houdini 4 Pro x64 (c) 2013 Robert Houdart

 info string 4 processor(s) found info string NUMA configuration with 1
 node(s), offset 0 info string 128 MB Hash

If I doing the same in console, the result is enter image description here

Where did other text dissapeared? How can I make it been seen using my program?

1

1 Answer 1

1

Try capturing the error output as well, it might be the case that the h.exe program only prints "info" messages to the standard output and everything else is sent to the error output.

process.getErrorStream();
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.