Not much to say, directly on the dry goods!
Question Details
When running a Java program, the console output too much, or run multiple Java programs at the same time, when the output is flashing, you can consider outputting the console output to a text file instead. Without having to modify the Java code, the introduction of the flow is so complex that you can directly let eclipse \ MyEclipse \scala idea for Eclipse print the console output to a text file.
Solutions
Do the following:
In Eclipse, select the target Java file, right-click, select Run->run configurations->common->standard input and output, select the file you want to save, or a new file (for example: C:\a.txt), as shown in:
If the A.txt file does not exist, eclipse will automatically create a new log file to save the output.
This eliminates the difficulty of processing the console output.
welcome everyone, join my public number: Big Data lie over the pit ai lie in the pit
At the same time, you can follow my personal blog :
http://www.cnblogs.com/zlslch/ and http://www.cnblogs.com/lchzls/ Http://www.cnblogs.com/sunn ydream/
For details, see: http://www.cnblogs.com/zlslch/p/7473861.html
Life is short, I would like to share. This public number will uphold the old learning to learn the endless exchange of open source spirit, gathered in the Internet and personal learning work of the essence of dry knowledge, everything to the Internet, feedback back to the Internet.
Current research areas: Big data, machine learning, deep learning, artificial intelligence, data mining, data analysis. Languages include: Java, Scala, Python, Shell, Linux, and more. It also covers the usual use of mobile phones, computers and the Internet using tips, problems and practical software. As long as you focus and stay in the group, every day must have a harvest
corresponding to the platform discussion and answer QQ group: Big Data and artificial intelligence lying in the pit (total group) (161156071)
How eclipse \ MyEclipse \scala idea for Eclipse saves the process record of console console output to a specified text file (in detail)