• Advertisement
Sign in to follow this  

[java] missing java servlet class

This topic is 4156 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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...

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement