Ant 编译出现:Error starting modern compiler

我通过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  查看评论

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值