当前位置: 技术问答>java相关
Ant中使用javac任务老是出错
来源: 互联网 发布时间:2017-03-28
本文导语: Buildfile: build.xml init: compile: [javac] Modern compiler is not available - using classic compiler [javac] Compiling 1 source file to E:pppmmmexample2build BUILD FAILED E:pppmmmexample2build.xml:19: Cannot use classic compiler, as it is ...
Buildfile: build.xml
init:
compile:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 1 source file to E:pppmmmexample2build
BUILD FAILED
E:pppmmmexample2build.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等任务都可以执行,请教各位了:)
init:
compile:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 1 source file to E:pppmmmexample2build
BUILD FAILED
E:pppmmmexample2build.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等任务都可以执行,请教各位了:)
|
JAVA_HOME没有设置
|
Koham(战神灭世) 说得对!
|
顺便问一下:我用ant运行出错是什么原因?
BUILD FAILED
file:D://build.xml:39: The task doesn't support the "executetable" attrib
ute.
Total time: 4 seconds
BUILD FAILED
file:D://build.xml:39: The task doesn't support the "executetable" attrib
ute.
Total time: 4 seconds