Find the classic Daconta article entitled "when Runtime.exec() won't" and read that. It has an example with calling the
Java Compiler.
Divert the error and output streams into your files.
Try that, it might work; I haven't tried myself.
Don't know how to get the errors into .xls format, but it should be easy to get them into comma separated value (.csv) format.