Cordova platform add android get error in JAVA_HOME

I just install my cordova 3.3 in my windows 8, when I use the command “add android platform”, I get this error message

Error: failed to run 'java -version', make sure your java environment is set up including jdk and jre
your JAVA_HOME variable is c:\program files(x86)\java\jdk1.7.0_25\bin
Error: Command failed: 'java' is not recognized as an internal or external command,
operable program or batch file.

here is my system variable for JAVA_HOME C: \ Program Files (x86) \ Java \ jdk1.7.0_25 \ bin and for the path I added this C: \ Program Files (x86) \ Java \ jdk1.7.0_25; C: \ Program Files (x86) \ Java \ jre7 can anyone help me with this issue?

+3
source share
2 answers

JAVA_HOME C: \ Program Files (x86) \ Java \ jdk1.7.0_25

enter image description here

+8
source

Set JAVA_HOME to c: \ program files (x86) \ java \ jdk1.7.0_25

0
source

All Articles