运行Javac编译器的“错误”试图用蚂蚁编译代码时

发布于 2025-02-12 10:43:25 字数 828 浏览 1 评论 0原文

我正在尝试从使用ANT的公共GitHub存储库中编译一些Java代码。从Linux Mint中的命令行工作,我得到了

BUILD FAILED /mydir/biosim-develop/build.xml:90: Error running javac
compile

(/mydir是一条相当漫长的路径的缩写。)

$ java_home设置为/usr/lib/lib/jvm/java/java-1.11.1.1.0 -openjdk-amd64。

我有蚂蚁1.10.7。 build.xml文件的相关部分读取:

<target name="compile-stubs" depends="init-build,init-tmp"
    description="compiles the IDL stubs">
    <echo message="Compiling stubs" />
    <javac target="1.8" source="1.8" srcdir="${stubsDir}" destdir="${buildDir}" fork="yes"
        memoryMaximumSize="256m" nowarn="yes" debug="on" includeantruntime="false">
        <classpath refid="biosim.lib.build.path"/>
    </javac>
</target>

我需要安装其他版本的Java或Ant吗?我可以将1.8更改为1.11吗?还是问题所在?

I am trying to compile some Java code from a public GitHub repository that uses Ant. Working from the command line in Linux Mint, I'm getting

BUILD FAILED /mydir/biosim-develop/build.xml:90: Error running javac
compile

(/mydir is an abbreviation for a rather lengthy path.)

$JAVA_HOME is set to /usr/lib/jvm/java-1.11.0-openjdk-amd64.

I have Ant 1.10.7. The relevant part of the build.xml file reads:

<target name="compile-stubs" depends="init-build,init-tmp"
    description="compiles the IDL stubs">
    <echo message="Compiling stubs" />
    <javac target="1.8" source="1.8" srcdir="${stubsDir}" destdir="${buildDir}" fork="yes"
        memoryMaximumSize="256m" nowarn="yes" debug="on" includeantruntime="false">
        <classpath refid="biosim.lib.build.path"/>
    </javac>
</target>

Do I need to install a different version of Java or Ant? Can I just change the 1.8 to 1.11? Or is the problem something else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文