I have a java program that works entirely through the console. Is there a way to get the console to open if the user doesn't run the program using the command line?
Asked
Active
Viewed 25 times
0
-
Yes but then your Programm will not run in this console – Simon Martinelli Mar 14 '21 at 20:04
-
Actually, you could open the command line via a runtime process, then link into its input/output/error streams. You could use System.setOut etc for that. The you'd have the same functionality more or less. Only difference is you'd have to check Ctrl+C and when that command window closes. – JayC667 Mar 14 '21 at 20:09