I'm struggling with the following issue: I am trying to build an application that, when run, opens a CMD window (visible to the user) and that is attached to that window's input and output (so that it functions like the console of the application). So if the user types something in the CMD window, then for example a Scanner(System.in) can pick it up, and when I do System.out.println then it appears in the CMD window.
I know that one could simply run the .jar file from CMD and attach it like that, but that's not what I want. I want the .jar to open a CMD window on itself and use that as it's console (visible to the user).
Looking forward to some suggestions :)