ERROR: JAVA_HOME is set to an invalid directory

Still the best answer and working!