在Windows 8上找不到PhoneGap / Cordova“javac -version”

时间:2014-12-05 11:56:58

标签: java android cordova

有人可以帮我解决问题吗? Javac -version not found on windows 8

2 个答案:

答案 0 :(得分:0)

你必须在环境变量中将java目录添加为JAVA_HOME,或者在PATH变量的末尾添加java目录。

答案 1 :(得分:0)

转到C:\Users\Arnold\.cordova\lib\npm_cache\cordova-android\3.6.3\package\framework\project.properties

将目标android下的19更改为17

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=android-17
apk-configurations=
renderscript.opt.level=O0
android.library=true