Suprit,
The problem is most likely with the space in your JAVA_HOME. If the path contains spaces, use the abbreviated path name. For example,C:\Progra~1\Java\jdk1.8.0_131
If you are using Windows10. try below
Set JAVA_HOME as "C:\Progra~1\Java\jdk1.8.0_131"
Also make sure that you include the %JAVA_HOME%\binPATH environment variable.
source
share