Having trouble compiling a servlet
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Samad_Siwani
Posted On:   Friday, August 16, 2002 08:08 AM

I am having a hard time compiling a servlet. I set the class path using the set classpath= method. I have unjarred the servlet.jar file and put it in the class path. I am trying to call on HttpServlet in my import statement. using import javax.servlet.http.HttpServlet but it cannot find the servlet class, and i get two errors, one where i have imported the class, and the other where it is extended from, like public class test extends HttpServlet { . However when I try import javax.servlet.http.* it gives me only one error at public class test extends HttpServlet { So i think that it can find the servlet.http.* but cannot find servlet.http.HttpServlet.    More>>

I am having a hard time compiling a servlet. I set the class path using the set classpath= method. I have unjarred the servlet.jar file and put it in the class path. I am trying to call on HttpServlet in my import statement. using

import javax.servlet.http.HttpServlet

but it cannot find the servlet class, and i get two errors, one where i have imported the class, and the other where it is extended from, like

public class test extends HttpServlet {

. However when I try

import javax.servlet.http.*

it gives me only one error at

public class test extends HttpServlet {

So i think that it can find the servlet.http.* but cannot find servlet.http.HttpServlet.



Can anyone please help me with this.



How can i compile a servlet from JBuilder, cause the class path is defined properly there and it can also see HttpServlet.



Thanks

   <<Less
About | Sitemap | Contact