Ant中使用javac任务老是出错

arefe 2002-12-17 06:05:57
Buildfile: build.xml

init:

compile:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 1 source file to E:\pppmmm\example2\build

BUILD FAILED

E:\pppmmm\example2\build.xml:19: Cannot use classic compiler, as it is not avail
able A common solution is to set the environment variable JAVA_HOME to your jdk
directory.

Total time: 1 second

jsdk1.4是装好的,其他copy,mkdir等任务都可以执行,请教各位了:)


...全文
63 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
arefe 2002-12-19
  • 打赏
  • 举报
回复
waiaou(yyy):
executetable应该是executable
粗心的错误
liuxiaowei 2002-12-18
  • 打赏
  • 举报
回复
Koham(战神灭世) 说得对!
arefe 2002-12-18
  • 打赏
  • 举报
回复
我搞定了,最先留言的5个人每人20分:)
Koham 2002-12-18
  • 打赏
  • 举报
回复
JAVA_HOME没有设置
waiaou 2002-12-18
  • 打赏
  • 举报
回复
顺便问一下:我用ant运行出错是什么原因?
BUILD FAILED
file:D://build.xml:39: The <exec> task doesn't support the "executetable" attrib
ute.

Total time: 4 seconds

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧