[英]Unable to compile NME for Android
Okay, so I'm trying to get an initial build of the NME sample files onto an Android device. 好的,我正在尝试将NME示例文件初始构建到Android设备上。
I can build for platforms such as HTML5, Flash and Windows, but I can't get it onto Android - I always get errors back that say: 我可以为HTML5,Flash和Windows等平台构建,但是我无法在Android上进行构建 - 我总是会收到错误说:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
Is is currently set to "C:\Program Files (x86)\Java\jre7"
Okay - obvious enough right? 好的 - 显而易见吧? But I've checked, rechecked, restarted, edited environment variables and made absolutely sure that the
JAVA_HOME
variable is actually pointing at the JDK. 但我检查,复查,重新启动,编辑环境变量并取得绝对确保
JAVA_HOME
变量实际上是指向的JDK。
Any explanations? 有什么解释吗?
Well, to answer my own question, I eventually found that there's an .hxcpp_config.xml
file in my user account ( C:\\Users\\James\\
), and that has an XML node which looked like this: 好吧,为了回答我自己的问题,我最终发现我的用户帐户(
C:\\Users\\James\\
)中有一个.hxcpp_config.xml
文件,并且有一个XML节点,如下所示:
<set name="JAVA_HOME" value="/SDKs//java_jdk" />
I've changed it to this: 我把它改成了这个:
<set name="JAVA_HOME" value="C:\Program Files (x86)\Java\jdk1.6.0_29" />
And it works! 它的工作原理!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.