This error message make user confuse, the success screen as below.
The error message make user try to fix the build fail with JAVA_HOME config. But the real problem is not just in the JAVA_HOME.
I fix this problem with correct config in JAVA_HOME and Path in "system variable".
Hope can help to fix the problem, but not re-install JDK.