I'm not sure this is what you are asking.  You never said what kind of
error you were getting.  But I though a list of my command line parameters
might help.  here is what I use:

-deprecation -classpath "d:\Program Files\jakarta-tomcat\classes";"\Program
Files\jakarta-tomcat\lib\servlet.jar" -d "d:\Program
Files\jakarta-tomcat\classes" $(FilePath)

1. You can leave "-deprecaton" out.  I just use it for my own reasons.
2.  "d:\Program Files\jakarta-tomcat\classes" is where my servlets go and
it also contains any other personal classes I use.  It appears in both the
"-classpath" and the "-d" parameter.
3.  "\Program Files\jakarta-tomcat\lib\servlet.jar" is provided with
tomcat.  It appears only in the "-classpath" parameter.
4.  "$(FilePath)" is replaced by the file name, which matches the class
name, of my servlet.
5.  Several of the file names are in quotes because they have imbedded
spaces.

I'm not sure this is what you were asking, but in case it was, this is what
I do.


Don Sailing [EMAIL PROTECTED]





aras <[EMAIL PROTECTED]>@localhost.localdomain on 02/28/2001 05:08:42 PM

Please respond to [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:

Subject:  Re: I CANT COMPILE SERVLETS!!!HELP

I'm having the same problem.  So I looked  into your suggestion or adding
$TOMCAT_HOME\bin jar file(s) to my CLASSPATH.  There are no jar files in
that dir.  All my jars are in TOMCAT_HOME/lib.  If the lib dir is what your
talking about, which or the jars to I need to add or do I just point to the
lib dir and it figures it out.


Chris Andreou wrote:

> check you jdk path
> and also set you classpath to all the jar files under the tomcat\bin
>
> -----Original Message-----
> From: Zakaria . [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: I CANT COMPILE SERVLETS!!!HELP
>
> Hello,
> I have tomcat running fine but i couldnt compile any servlet. I put the
> servlet in different directories and tried (does it matter?) but same
> result:
> cannot resolve symbol:HttpServlet
>
> i use this command line from the same directory as the servlet:
> javac -classpath c:\tomcat\lib\servlet.jar Hello.java
>
> i also downloaded the servlet.jar from the sun site and include it in the
> classpath and in the command line with the same result...
> how can i compile using the servlet.jar???
>
> thanks.
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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






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

Reply via email to