我刚刚在Windows 8上安装了Cordova 3.3,当我使用命令“cordova platform add android”时,我收到了以下错误信息:
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.
以下是我的JAVA_HOME系统变量: C:\Program Files (x86)\Java\jdk1.7.0_25\bin, 而对于路径,我添加了以下内容: C:\Program Files (x86)\Java\jdk1.7.0_25;C:\Program Files (x86)\Java\jre7。 有没有人能帮我解决这个问题?