[java] missing java servlet class

Started by
2 comments, last by bikola_p 17 years, 6 months ago
hey guys, im new to java, im doing some JSP, i have everything configured, ie, i can run sample jsp pages, using tomcat server, and its all good there. Now when it comes to me having to write my own JSP code, im stuck... i have to import javax.servlet*; however, i get the error, that this class / package doesnt exist. I looked over the net, and found J2EE is needed, and carries the needed package / classes, what do i do from here. And do i have to set the classpath again, and to what directory...
Advertisement
Anyone...pls
You need to add the servlet classes into your compile-time classpath. This is not very difficult - see the documentation for your IDE as to how to do this.

They're typically shipped in servlet.jar and part of the servlet development kit.

Mark
So wait, your saying not only do i need to specify in windows classpath, but also for the IDE. BTW thanks heaps for the reply.

This topic is closed to new replies.

Advertisement