Ensure JAVA_HOME is set