简体   繁体   中英

Sending System.out to console in Java

How do you make it so that your executable jar opens and sends all System.out.println() to a command prompt? When I export and open the jar I don't see anything happen.

Double clicking to open the jar.

You would have to open the jar in the command line to be able to view it's System.out() commands.

You can usually do so with " java -jar 'JarName'.jar " Without quotes and substituting the name of you jar file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM