Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

puzzled with this format  RSS feed

 
he xiao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
puzzled with this format
"javac test.java>debug.txt", which mean compile test.java and redirect the error output stream to committed file "debug.txt".
but infact,it doesn't work.The debug.txt is empty.could you tell me the reason and how to solve it? thank you!
 
he xiao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
up
 
he xiao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Jeroen Wenting!
he told me to do this:
you're redirecting stdout to your textfile, not stderr.
What you need is "javac test.java 2>debug.txt" which will redirect the errors to your textfile.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!