尝试构建项目的java部分时生成错误

时间:2012-12-21 13:25:05

标签: macos google-app-engine ringojs

克隆ringojs存储库后,我在目录中运行:

ant jar

但是,构建失败了大约100个错误,其中一些是错误的:

    init:

    compile:
        [javac] Compiling 55 source files to /Users/ZConsulting/repos/ringojs/build/classes
        [javac] repos/ringojs/src/org/ringojs/engine/Callback.java:19: error: package org.mozilla.javascript does not exist
        [javac] import org.mozilla.javascript.Context;
        [javac]                              ^
        [javac] repos/ringojs/src/org/ringojs/engine/Callback.java:20: error: package org.mozilla.javascript does not exist
        [javac] import org.mozilla.javascript.Function;
        [javac]                              ^
        [javac] repos/ringojs/src/org/ringojs/engine/Callback.java:21: error: package org.mozilla.javascript does not exist
        [javac] import org.mozilla.javascript.Scriptable;
        [javac]                              ^
        [javac] repos/ringojs/src/org/ringojs/engine/Callback.java:22: error: package org.mozilla.javascript does not exist
        [javac] import org.mozilla.javascript.ScriptableObject;
        [javac]                              ^
        [javac] repos/ringojs/src/org/ringojs/engine/RhinoEngine.java:19: error: package org.mozilla.javascript does not exist
        [javac] import org.mozilla.javascript.Context;
        [javac]                              ^

BUILD FAILED
repos/ringojs/build.xml:76: Compile failed; see the compiler error output for details.

我的上下文是在googleappengine上为我的项目构建后端应用程序。

1 个答案:

答案 0 :(得分:0)

你需要安装apache ant和ivy。 常春藤应该下载犀牛罐。

如果常春藤和蚂蚁被打破了,那么

ant update
ant jar

这应该有所帮助。