开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜