ant中的问题
我是一名初学者,大牛们帮帮忙啊当在控制台中运行ant的时候 。就会出现这一行
Unable to locate tools.jar. Expected to find it in E:\java\lib\tools.jar
这个问题是怎么解决,还是这样就没有问题。还能出现这两行
Buildfile:build.xml does not exist!
build failed
当解析这个build.xml的时候就出现错误了
[javac]e:\daima\ws_axis_example\src\build.xml:12:warning:'includeantruntime' was not set ,defaulting to build.sysclasspath=last; set to false for repeatable builds
BUILD FAILED
e:\daima\ws_axis_example\src\build.xml:12:srcdir: "e:\daima\ws_axis_example\src\src" does not exist!
这是我的build.xml是这样配置的,还有是哪里出现错误了
<project name="service" basedir="." default="makeService">
<property name="dist.dir" value="dist"/>
<property name="dist.dir.classes" value="${dist.dir}/classes"/>
<property name="AXIS2_HOME" value="E:\axis2-1.7.1"/>
<path id="build.class.path">
<fileset dir="${AXIS2_HOME}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="makeService">
<copy file="org/tarena/services/services.xml" tofile="${dist.dir.classes}/META-INF/services.xml" overwrite="true"/>
<javac srcdir="src" destdir="${dist.dir.classes}" includes="org/tarena/services/*">
<classpath refid="build.class.path"></classpath>
</javac>
<jar basedir="${dist.dir.classes}" destfile="${dist.dir}/AxisService.aar"/>
</target>
</project>