I have set JAVA_HOME
in my system C:\\Program Files\\Java\\jdk1.8.0_
131\\bin;
and I am trying to run cordova command( cordova build ) on command p
You should set it with C:\Program Files\Java\jdk1.8.0_12
.
\bin
is not required.
set JAVA_HOME as C:\Program Files\Java\jdk1.8.0_172
do not use semicolon ";" with above JAVA_HOME value
To verify that it is correctly set, Go to command prompt check for C:.......>sdkmanager --list
a complete list will appear that will let you now that it is successfully saved.
else it will show error that JAVA_HOME path is not correctly set.
After isntalling jdk please restart your system this works for me