运行Javac编译器的“错误”试图用蚂蚁编译代码时
我正在尝试从使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论