ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beth Linker" <>
Subject RE: Compile errors
Date Fri, 06 Dec 2002 22:15:46 GMT

It looks like you don't have your Java classpath for the javac task
configured to include the JAR file with the javax.servlet.http classes.
One solution is to figure out where your web application server is
getting those classes and add that JAR to the javac task using a
classpath element:

<javac src="yoursrc" dest="yourdest">
		<pathelement location="your servlet JAR"/>

Another option is to add the servlet JAR to the CLASSPATH environment


-----Original Message-----
From: Ted Munnich [] 
Sent: Friday, December 06, 2002 5:05 PM
Subject: Compile errors

I am getting an error while compiling using ant.

Here is a snapshot of the ant script:

<target name="compile">
   <javac srcdir="${src.dir}"

Where 'src.dir' is pointing to the source file directory and
'classes.dir' is the class file output directory. The error message
states it can not find the javax.servlet.http package does not exist.
See below: [javac]
package javax.servlet.http does not exist[javac] import

When I run the webbased application using an application server, the
java files compile without problems. Does anyone have any idea what I am
missing. Thank you.

Ted Munnich

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message