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
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

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.
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: 986

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.
Have you checked out Aspose?
subject: javac.Hello.java > a.txt..! Is it possible.
It's not a secret anymore!