I get the error “The system cannot find the path specified”. What’s wrong?

Check if you have defined the correct JAVA_HOME environment variable in the .cmd/.sh file.

On Windows the java.exe is located in the %JAVA_HOME%\bin directory.