当前位置: 技术问答>java相关
请帮我解决ant问题!!!
来源: 互联网 发布时间:2015-05-19
本文导语: 安装好jdk1.4,j2sdkee1.3.1,ant后, java_home=C:j2sdk1.4.0 j2ee_home=C:j2sdkee1.3.1 ant_home=F:jakarta-ant-1.3-binjakarta-ant-1.3 设置好classpath,再运行ant converter出现如下错误: init: converter: [javac] Modern compiler is not available - using classic com...
安装好jdk1.4,j2sdkee1.3.1,ant后,
java_home=C:j2sdk1.4.0
j2ee_home=C:j2sdkee1.3.1
ant_home=F:jakarta-ant-1.3-binjakarta-ant-1.3
设置好classpath,再运行ant converter出现如下错误:
init:
converter:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 4 source file to f:binmingexamplesbuildejbconverter
BUILD FAILED
f:binmingexamplesbuild.xml:89: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory.
Total time: 1 second.
java_home=C:j2sdk1.4.0
j2ee_home=C:j2sdkee1.3.1
ant_home=F:jakarta-ant-1.3-binjakarta-ant-1.3
设置好classpath,再运行ant converter出现如下错误:
init:
converter:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 4 source file to f:binmingexamplesbuildejbconverter
BUILD FAILED
f:binmingexamplesbuild.xml:89: Cannot use classic compiler, as it is not available A common solution is to set the environment variable JAVA_HOME to your jdk directory.
Total time: 1 second.
|
如果什么都不行,把你自建的lib下面的ext目录删了吧,我刚才就碰到这个问题,本来想到这儿找答案的,呵呵,我现在是1.4删掉,1.3的runtime删掉,都不行,后来在网上看到这个办法的。删掉ext就可以了,奇怪。