Hi.
In my application I open a command line window with the following code:
This works fine.try { Runtime.getRuntime().exec(new String[] {"cmd.exe", "/C", "\"start; cd c:\\\""}); } catch (IOException e) { e.printStackTrace(); }
However, I would like to redirect System.in and System.out to this newly created window. How could I do that?
This is supposed to work for java applications which have been started with a double click (executable jar).
Thank you in advance!