How can I stop the output screen when double click the jar file
When I double click the jar file [HelloWorld] It quickly open and close the console window.
[I know I can type the command at the console window, any other methods for double click only??] I would like to know how to stop the console to close so that I can see the output thx all!! |
Add a 'press any key to continue' into your program. Or, in Windows, there is a setting that keeps the window from closing, instead it says 'Finished-[program name]'. Not sure if there is such a setting in Linux (probably depends on which terminal emulator you're using).
|
very thx !!
but I would like to know is it possible to make it machine independent? the user no need to config their system. they only need to double click the Hello.jar file only?? |
The 'press any key' is machine independent,
|
All times are GMT -5. The time now is 12:55 AM. |