Hi,
you can redirect your output error to a file by following way
import java.io.PrintStream;
import java.io.FileOutputStream;
class errRedirect
{
public static void main(
String arg[])
{
System.setErr(new PrintStream(new FileOutputStream("c:\error.txt",true).false));
System.err.println("Hello this is the Error.txt file");
}
}
when you runs this program the output give to the err will be caputered in the error.txt file
Warm Regards
Pankaj