LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How can I stop the output screen when double click the jar file (https://www.linuxquestions.org/questions/programming-9/how-can-i-stop-the-output-screen-when-double-click-the-jar-file-201658/)

antony_csf 07-06-2004 05:27 AM

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!!

aaa 07-06-2004 10:40 AM

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).

antony_csf 07-07-2004 04:51 AM

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??

aaa 07-07-2004 06:38 AM

The 'press any key' is machine independent,


All times are GMT -5. The time now is 12:55 AM.