Closed tastewar closed 7 years ago
Hi, it's because I used System.in.read() at the end of the program. So just press enter to make it exit. Thank you!
Thanks for the explanation. It's helpful to have a message like "Press Enter to exit" or something like that. Did you do this so that you could have a desktop shortcut to run the program and not have it close the window? If so, you can make a shortcut as follows:
cmd.exe /k java -jar pi-oi.jar
so the window doesn't close automatically. This will make your program easier to use in other scenarios (e.g. someone running it in a batch file)
Yes, I think I will add this soon. Thank you for your reply. On Feb 6, 2016 9:40 PM, "Tom Stewart" notifications@github.com wrote:
Thanks for the explanation. It's helpful to have a message like "Press Enter to exit" or something like that. Did you do this so that you could have a desktop shortcut to run the program and not have it close the window?
— Reply to this email directly or view it on GitHub https://github.com/thoqbk/pi-oi/issues/1#issuecomment-180778515.
When I run your program as suggested, via
java -jar pi-oi.jar
it seems to just hang after displaying results and printing your name. I am running "the latest" version of Java (on Windows):java version "1.8.0_71" Java(TM) SE Runtime Environment (build 1.8.0_71-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)