The JAVA_HOME is set to an invalid directory fix All you need to do to fix this error is edit the JAVA_HOME variable and point it to the correct directory . The JAVA_HOME environment variable must point to the root of the installation folder of a JDK.