If you're importing the javax.servlet.* and javax.servlet.http.* packages and
still getting an error, make sure your "classpath" variable (%classpath% on
Windoze and $classpath on Unix) includes a directory where you have:
+ mydirectory
|
+-+ javax
| |
| +-+ servlet
| | |
| | + servlet classes
| | |
| | +-+ http
| | | |
| | | + httpservlet classes
Make sure the .class files are in the necessary directories (javax/servlet
and javax/servlet/http), and include "mydirectory" in your "classpath"
variable. There you go.
Joona Palaste
At 04:02 PM 8/24/99 -0700, you wrote:
>Hi everybody;
>I have a problem with JSDK2.1 and I hope someone to help me in that case.
>I am trying to write a servlet application that extends HttpServlet class.
>When I compile it with javac it gives some error like:
>
>SessionExample.java:8: Package javax.servlet not found in import.
>import javax.servlet.*;
> ^
>SessionExample.java:9: Package javax.servlet.http not found in import.
>import javax.servlet.http.*;
> ^
>SessionExample.java:19: Superclass HttpServlet of class SessionExample not
>found
>.
>public class SessionExample extends HttpServlet {
> ^
>3 errors
>
>how can I correct this error.( By the way I made a classpath to the
>tools.jar in JDK1.2 ) Thanks for your consideration.
> Tahsin Turkoz
> Department of Computer Engeneering
> and Information Science
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html