Reputation: 6984
I would like to see some of the System.out and accept some inputs from it for testing my application on other computers which do not have Eclipse on them.
Upvotes: 1
Views: 243
Reputation: 936
Normally, if you run the jar by double-clicking then the console output won't be shown.
However, you can launch the command line application (Terminal/CMD depending on your OS) then use the cd
command to navigate to the directory of the jar file. Then type:
java -jar [app_name.jar]
This will run the application and show output within the console.
Upvotes: 1