关于ant的问题

luckybeggar 2003-08-27 12:15:35
用ant编译时出现的问题。我的JDK 是j2sdk1.4.2 ant 版本是1.5
C:\Tomcat\webapps\jivejdon>ant
Buildfile: build.xml

init:
[echo] ----------- Jive 0.1.1 [2002] ------------

prepare:

compile:
[javac] Compiling 1 source file to C:\Tomcat\webapps\jivejdon\classes
[javac] This version of java does not support the classic compiler; upgradin
g to modern

package:
[jar] Building jar: C:\Tomcat\webapps\jivejdon\application\WEB-INF\lib\jiv
e.jar

dist:
[copy] Copying 1 file to C:\tomcat\webapps\cowork\WEB-INF\lib

BUILD SUCCESSFUL
Total time: 14 seconds
C:\Tomcat\webapps\jivejdon>
...全文
76 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
l_walker 2003-08-27
  • 打赏
  • 举报
回复
<!--javac-->
<javac destdir="${build.class.dir}"
fork="true"
debug="on">
...
</javac>


try:
fork="true"
bdsc 2003-08-27
  • 打赏
  • 举报
回复
This version of java does not support the classic compiler; upgrading to modern
luckybeggar 2003-08-27
  • 打赏
  • 举报
回复
up
windmagin 2003-08-27
  • 打赏
  • 举报
回复
反译一下,这个版本的Java不支持compiler类。
至于g to modern 我想是更换版本吧。
luckybeggar 2003-08-27
  • 打赏
  • 举报
回复
[javac] This version of java does not support the classic compiler; upgradinupgradin
g to modern
是怎么回是
luckybeggar 2003-08-27
  • 打赏
  • 举报
回复
我查了ant的帮助,jdk1.2以上设置build.compiler 为modern,还要谢谢大家的提醒
luckybeggar 2003-08-27
  • 打赏
  • 举报
回复
问题解决谢谢bdsc,i_walker
bdsc 2003-08-27
  • 打赏
  • 举报
回复
忘了说:
classic compiler:jdk1.1/1.2
modern:jdk1.3/1.4

下个新的ant,看来他不认1.4.2
glassprogrammer 2003-08-27
  • 打赏
  • 举报
回复
This version of java does not support the classic compiler; upgrading to modern

告诉你当前的 java 不支持 classic 的编译器, 所以使用 modern 编译器
luckybeggar 2003-08-27
  • 打赏
  • 举报
回复
fork="true"
是什么意思,问题解决后给分

81,092

社区成员

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

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