Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] missing java servlet class

Started by bikola_p Oct 6, 2006 at 5:42 PM 2 replies 1.4k views
Original Post
bikola_p
bikola_p
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...
bikola_p
bikola_p
Anyone...pls
markr
markr
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
bikola_p
bikola_p
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.