打包钛模块时无法找到javac编译器

时间:2013-03-27 13:13:48

标签: titanium titanium-modules

当我尝试从工作室打包模块时,Titanium studio无法找到Javac编译器。但是能够从终端中的build.xml打包。可能是什么问题。

Executing build.xml...
C:\Users\tarak\AppData\Roaming\Titanium\mobilesdk\win32\3.0.3.v20130318143059\module\android\build.xml:166: 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.
It is currently set to "C:\Program Files\Appcelerator\Titanium Studio\jre"

1 个答案:

答案 0 :(得分:1)

让java home变量指向 jdk 安装,而不是 jre