I am trying to build a sample application using ANT build. But i am getting an exception :
package javax.servlet.jsp does not exist.
Here is my sample build.xml file. Application doesn’t has any problem, but only in build there appears to be some problem. Please explain me whats the problem. I am new to ANT build.
<property name="build.dir" value="build"></property>
<property name="src.dir" location="src"></property>
<property name="classes.dir" value="${build.dir}/classes"></property>
<property name="buildlib" location="WebContent/WEB-INF/lib"/>
<path id="build.classpath">
<fileset dir="${buildlib}" includes="*.jar"/>
<pathelement location="."/>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"/>
<classpath refid="build.classpath" />
</target>
</project>
Okie. I got the answer. It was problem in build file.
This was the error
I had closed javac tag and then i was reading classpath.
Anyway thanks a lot for your replies