java - Ant Javac and Commandline Javac give different results -


i have class imports servlet libraries. when compile command-line fine.

when use ant compile task compile it, gives errors can't find servlet libraries in path.

is known/common occurrence?

here ant target:

<target name="compile" depends="prepare" description="compile source" >     <echo>=== compile === srcdir: ${src}/com/udfr/src/java </echo> <!-- compile java code ${src} ${build} -->     <javac srcdir="${src}/com/udfr/src/java" destdir="${dist}/web-inf/classes"/> </target> 

it's common occurrence if don't specify servlet libraries in classpath javac task... suspect that's problem. if post task fails , command line works, we'll able more.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -