I know this is a popular question on the web, but I\'m getting this error even after setting JAVA_HOME env variable and adding %JAVA_HOME%\\bin\\ to th
JAVA_HOME
%JAVA_HOME%\\bin\\
If you use the gui of windows for env variable don't use %JAVA_HOME% but the real path. The variable are not interpreted in the gui.
And in consequence you have %JAVA_HOME% directly in your path who will not be interpreted when you enter your command