开发者

Wrote warnings in file in Windows from during execution

开发者 https://www.devze.com 2023-02-03 19:48 出处:网络
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 c

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

0

精彩评论

暂无评论...
验证码 换一张
取 消