Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javac.Hello.java > a.txt..! Is it possible.

 
Suji N
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends
see the below statement
java Hello > a.txt
By using the above statement the output of Hello.java will be stored at a.txt.
Can we store the error messages using
javac Hello.java in a txt file ??
i mean like javac.Hello.java > a.txt
If possible please tell me how can i store the error messages while compiling.
Thanksinadvance
Yours
Suji
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a whole thread on the subject.
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In unix this

will redirect the errors to output.txt instead of your screen.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic