Cloudera interview question

How to check the reason for failure for a Java App on Linux?