ERROR: JAVA_HOME is set to an invalid directory

image
Maybe the problem is in the outdated jdk?