Ensure JAVA_HOME is set correctly