Pregunta de entrevista de Cloudera

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