2014-12-05 48 views
0

有人可以幫我解決問題嗎? Javac -version not found on windows 8在Windows 8上找不到PhoneGap/Cordova「javac -version」

+2

你必須要更具體。你有什麼問題?你已經試圖解決它? – Thorben 2014-12-05 11:58:04

+0

它表明你沒有安裝jdk或在類路徑中...嘗試'javac -version'並查看它是否存在,否則安裝它/放在類路徑中。 – Shail016 2014-12-05 11:59:47

+0

你有JRE沒有安裝JDK。這就是爲什麼你可以得到'java -version',但找不到'javac' – fejese 2014-12-05 12:04:30

回答

0

您必須在環境變量中添加您的java目錄作爲JAVA_HOME或添加您在PATH變量末尾的java目錄。

0

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

變化1917目標的android下。

# 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