Sign in to follow this  
bikola_p

[java] missing java servlet class

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this