Compilation error on javax.servlet. etc

Using iGRASP I'm trying to compile on my local machine file that uses the following references and getting errors: package javax.servlet does not exist
import javax.servlet.RequestDispatcher;
                     ^ package javax.servlet does not exist
import javax.servlet.ServletContext; package javax.servlet.http does not exist
import javax.servlet.http.HttpServletResponse;
                          ^ cannot resolve symbol
symbol  : class HttpServlet
I have full SDK 2.0 and separate javax package, but don't know where should it be placed for this project to see it at compile time.
Please help. I need it ASAP.
PS. I'm new to Java.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

ManishConnect With a Mentor LeadCommented:
ru using any IDE?
Do you have j2ee.jar ?
Is it in classpath?
laguna21Author Commented:
yes, I have it in my CLASSPATH...
laguna21Author Commented:
I've added servlet.jar to my classpath and it worked. Thank you very much for the idea
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.