Ant 编译出现:Error starting modern compiler

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

我通过ant,执行start的时候就出现下面问题,,我用的是ant 1.7.0,jikes1.22,jdk1.6.1,为什么出下以下问题,谁能来救救我,

Buildfile: D:\liferay\portal\build.xml

start:

compile:

compile:

[javac] Compiling 232 source files to D:\liferay\portal\portal-kernel\classes

BUILD FAILED

D:\liferay\portal\build.xml:15: The following error occurred while executing this line:

D:\liferay\portal\build.xml:230: The following error occurred while executing this line:

D:\liferay\portal\portal-kernel\build.xml:23: Error starting modern compiler

Total time: 18 seconds

-----------------------------------------

我也遇到过这个问题,修改下面的就可解决问题

在这个文件中build.properties

修改编译器的类型

#javac.compiler=modern

javac.compiler=jikes

--------------------------------------

我用的Jdk是1.6,在MyEclipse下编译Liferay4.3也遇到过这个问题,解决方法如下:

从JDK 1.5的类库中copy了一个tool.jar,放在我的C:\Program Files\MyEclipse 6.0\jre\lib\ext路径中,就OK了。原因是ant还不能支持JDK 1.6。

源文档

阅读全文
类别: jboss+ejb+myeclipse  查看评论

转载于:https://my.oschina.net/zhaoyou/blog/9073

你可能感兴趣的:(Ant 编译出现:Error starting modern compiler)