Pergunta de entrevista da empresa Cloudera

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