[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

JSP development on Eclipse 3.2.2

I am trying to develop JSP/servlets on my mac using e
Eclipse 3.2.2. However when i try to  write a class that imports javax.servlet.http.* Eclipse does not recognise this and the class will not compile.

Can anyone advise on this?

many thanks
0
frankis
Asked:
frankis
1 Solution
 
marklorenzCommented:
You need to add servlet.jar to your project classpath.  Instructions here:

...servlet.jar. This JAR file comes with the web server we're going to use later in the book, Apache Tomcat. To add servlet.jar to the classpath...

http://www.onjava.com/pub/a/onjava/excerpt/eclipse_chapter2/index.html?page=last
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now