Hi! I have a DOS Batch file that is executed by a Mainframe process. I need to be able to trap any errors generated by running the java program (like class not found), but have not been able to do it as yet. I found that I can check the ErrorLevel and find that an error happened, but I would like to know the specific error. I tried redirecting the output of the java command, but that did not work: java class > error.log The file was generated, but no data. Any ideas?