I would start by logging the output to a file: java YourJavaApp > output.log 2>&1.
java YourJavaApp > output.log 2>&1