您的位置:首页 > 其它

Ant 编译出现:Error starting modern compiler

2010-10-19 13:07 267 查看
我通过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。

源文档 <http://hi.baidu.com/jojin18/blog/item/dba49d005a1a15011d95833c.html>
阅读全文
类别:jboss+ejb+myeclipse 查看评论
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: