• Post Reply Bookmark Topic Watch Topic
  • New Topic

please help me with this error

 
gayathri reddy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using tomcat3.2.1 and was able to compile few servlets, but today when i was compiling other java servlets it is displaying the foll error.
*****************************************************************
RequestInfo.java:2: Package javax.servlet not found in import.
import javax.servlet.*;
^
RequestInfo.java:3: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
^
RequestInfo.java:5: Superclass HttpServlet of class RequestInfo not found.
public class RequestInfo extends HttpServlet {
^
3 errors
*****************************************************************
thanks,
-greddy
 
Ruslan Ivanov
Ranch Hand
Posts: 72
 
gayathri reddy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Ruslan Now I got it.
-greddy
 
gayathri reddy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sorry again i am getting the same problem after setting the classpath.
here is classpath setting info:

SET TOMCAT_HOME=c:\tomcat\jakarta-tomcat-3.2.1
set JAVA_HOME=c:\jdk1.2.2
set PATH=%PATH%;c:\jdk1.2.2\bin
set CLASSPATH=.;c:\jdk1.2.2\bin\;c:\jdk1.2.2\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar;
-greddy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!