Wrote warnings in file in Windows from during execution
How to start .jar application from comma开发者_开发问答nd line and wrote errors ( exceptionsand warnings, all what is in Console in eclipse during execution ) in errors.text on Windows ?
it think you can do this by starting your jar with the following command:
java -jar myJarFile.jar 2>> errors.txt
the 2>>
is used to redirect error messages (System.err)
if you want to redirect normal ouput too use 1> myfile.txt
精彩评论