• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiler problem

 
nabi bux
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to create my java editor I have Creatd it But i have gotted a problem that how i catch the error are generated by compiler
Example:-
when we use c compiler we use as to print some errors on the file
tcc Exam.c>> error.txt
any message generated by compiler will be written over file error.txt
but this is not happening in java compile time
any Body can help me to get this solution
Thanks!
 
Joe Ess
Bartender
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javac compiler sends error messages to the standard error stream, not the standard output stream. You redirect the error stream like this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic