Are you compiling your code on the same box that your tomcat server is located?
If no, then make sure that your development machine has a servlet.jar file in
the jdk.
If yes, then:
- add the path to servlet.jar in your classpath variable. servlet.jar
should be somewhere in TOMCAT_HOME.
I hope this helps.
Feel free to correct me if this is not the best solution.
thanks,
suha.
"Pae Choi" <[EMAIL PROTECTED]> on 04/15/2001 01:00:07 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Suha Yacoub/IL/ONE)
Subject: Re: javax.servlet problem
If your classpath is correctly set for the javax.servlet.* package, did
you also verified that your compiler(whatever)'s context also contain
the classpath?
Pae
>Thank you for your help
>
>It seems it is not a typo problem(it is the mistake I made at previous
>message without a ";")
>The compiler cannot recognize the second statement "import
>javax.servlet.*"
>
>I cannot compile the java program with the program header start with
>
>import java.io.*;
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>during the compilation, it stops with error at the above statement.
>
>I have make sure the classes are set under the correct path.
>
>Thanks!
>