Fixes #34: JAVA_HOME check

if JAVA_HOME is not set, there is just a non blocking error