So, I a program in Java that uses the console, currently I use this setup:
// Two snippets of the program Console c = System.console(); // Some code c.readLine();
javac program.java java program
but instead of doing that, is there any way I can compile the class file(s) into a
.jar file while keeping the console there? My goal is to open the console without having to use the console to navigate to the app, then inputting the second line of the given example.
So, is there any way to do this?