It's not your system classpath that maters, it's the classpath for the javac
ant task.

For instance I have a task:

    <javac srcdir="${javasrc.home}" destdir="${object.home}"  debug="yes" >
        <classpath refid="compile.classpath.singletier"/>
    </javac>


This uses another task (earlier in build.xml) to set the classpath:

  <path id="compile.classpath.singletier">

    <!-- The object files for this application -->
    <pathelement location="${object.home}"/>

    <!-- The lib files for this application -->
    <fileset dir="${lib.home}/client">
      <include name="*.jar"/>
      <include name="*.zip"/>
    </fileset>
 </path>

So, read up on the javac ant task, specifically looking at the nested
classpath elements.

hth,

Pual

> -----Original Message-----
> From: Rick Roberts [mailto:[EMAIL PROTECTED]
> Sent: 05 April 2004 17:37
> To: struts-user List
> Subject: ANT Build: package javax.servlet does not exist
> 
> 
> I am new to the list so go easy on me :)
> I searched the archives but did not find the answer to this 
> but I am almost 
> certain that it has been asked here a Bejillion times already.
> 
> I have tomcat 4.24 on Redhat running with no problems.
> 
> I can run the struts blank.war starter application with no problems.
> 
> I have $TOMCAT_HOME/common/lib/ in my CLASSPATH
> I even have $TOMCAT_HOME/common/lib/servlet.jar in my CLASSPATH
> 
> I am trying to work thru some examples and when I get to the 
> part where I need 
> to get ANT to build the project, ANT gives me this error:
> 
> package javax.servlet does not exist
> 
> Any suggestions?
> 
> Thanks,
> 
> -- 
> *******************************************
> * Rick Roberts                            *
> * Advanced Information Technologies, Inc. *
> * http://www.aitsupport.com               *
> *******************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to