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:

ScorecardSelector.java:31: package javax.servlet does not exist
import javax.servlet.RequestDispatcher;
                     ^
ScorecardSelector.java:32: package javax.servlet does not exist
import javax.servlet.ServletContext;
ScorecardSelector.java:36: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletResponse;
                          ^
ScorecardSelector.java:53: 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.
Thnx
PS. I'm new to Java.

laguna21Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ManishConnect With a Mentor LeadCommented:
ru using any IDE?
0
 
ManishLeadCommented:
Do you have j2ee.jar ?
Is it in classpath?
0
 
laguna21Author Commented:
yes, I have it in my CLASSPATH...
0
 
laguna21Author Commented:
I've added servlet.jar to my classpath and it worked. Thank you very much for the idea
0
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.