JAVA_HOME目前设置为“C:\ Program Files \ Java \ jdk1.8.0_45”..仍然显示值直到jre。
I have added tools.jar in Ant->Runtime->Globle Entries
Also verified that installed jre is having path "C:\Program Files\Java\jdk1.8.0_45"
Copied "C:\Program Files\Java\jdk1.8.0_45\lib\tools.jar" to "C:\Program Files\Java\jre1.8.0_45\lib\" folder
Is there any other solution to this problem?
答案 0 :(得分:0)
您必须将ant-contrib*.jar
包含在Ant安装中(在<ant_home>/lib
目录中),或者在<classpath>
中包含明确的build.xml
:
<taskdef resource="...">
<classpath>
<pathelement location="my_dir/ant-contrib.jar"/>
</classpath>
</taskdef>