wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes javac.Hello.java > a.txt..!    Is it possible. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac.Hello.java > a.txt..!    Is it possible." Watch "javac.Hello.java > a.txt..!    Is it possible." New topic
Author

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

Suji N
Ranch Hand

Joined: Sep 04, 2001
Posts: 35
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

Joined: May 17, 2001
Posts: 2823
Here is a whole thread on the subject.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

In unix this

will redirect the errors to output.txt instead of your screen.


Please ignore post, I have no idea what I am talking about.
 
jQuery in Action, 2nd edition
 
subject: javac.Hello.java > a.txt..! Is it possible.
 
Similar Threads
Compilation using classpath
Ant - check - file exists for deletion ?
File upload to a Remote server
Download file from FTP using java client
Not able to write the output to the file.