无法构建我的应用程序

时间:2015-03-23 21:00:13

标签: android cross-platform codenameone

Hi World App在模拟器中运行,但没有生成BUILD文件。

我收到此错误

goBlank:

testFail:

setupJavac:

jar:
     [echo] Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
     [echo]             code size and wider device support
     [copy] Copying 1 file to E:\rainforest\rfl1\rfl1-1\testcodenameone\build\tmp
    [javac] E:\rainforest\rfl1\rfl1-1\testcodenameone\build.xml:131: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 3 source files to E:\rainforest\rfl1\rfl1-1\testcodenameone\build\tmp
      [jar] Building jar: E:\rainforest\rfl1\rfl1-1\testcodenameone\dist\testcodenameone.jar
    [javac] E:\rainforest\rfl1\rfl1-1\testcodenameone\build.xml:155: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
E:\rainforest\rfl1\rfl1-1\testcodenameone\build.xml:155: Class not found: javac1.8

Total time: 3 seconds

1 个答案:

答案 0 :(得分:0)

您需要Eclipse本身在JDK 1.7下运行(这需要通过Eclipse ini文件进行配置)。还要确保JAVA_HOME指向JDK 1.7。