How can I capture Java compiler errors into a file?

守給你的承諾、 提交于 2019-12-03 16:43:11

Try redirecting the stderr:

javac t1.java 2> error_file 

> foo implies 1> foo where 1 is the stdout stream.

In bash, if you want to redirect the stderr stream, use 2> foo

The standard Unix fileno's are 0 - stdin, 1 - stdout, 2 - stderr.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!