我只是在我的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 有人可以帮我解决这个问题吗?
答案 0 :(得分:8)
JAVA_HOME C:\ Program Files(x86)\ Java \ jdk1.7.0_25
答案 1 :(得分:0)
将您的JAVA_HOME设置为c:\ program files(x86)\ java \ jdk1.7.0_25