What is System.out exactly?
问题 I noticed that any call to System.out.println() from a JAR file that hasn't been started by the command line (i.e. a Runnable JAR file started by user with double-click) won't open the console. After doing some research, I found multiple answers on the site: System.out.println in jar There is no problem doing like that. But where do you expect to see the output? What happens to “System.out.println()” in executable jar? If you run the code in some way that doesn't attach a console - such as