Instead of setting JAVA_HOME
to JRE
folder, you need to set it to your JDK
folder. Generally, the JDK
folder is under the same root folder of JRE
:
To change the folder path of JAVA_HOME
, you can change the value of JAVA_HOME
under VS->Tools->Options->Tools for Apache Cordova->Environment Variable Overrides
.