Package javax.servlet does not exist error while import javax.servlet.*;

I want to development in java servlets.
So, i write import javax.servlet.*; line in my code.
When i compile the file error Package javax.servlet does not exist occure.
what is the solution.
LVL 1
pak_slmAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

avexusCommented:
You need to put j2ee.jar in your CLASSPATH.
0
girionisCommented:
 If he is not using any enterprise stuff then he probably does not have the j2ee.jar file. pak_slim can you do a search for servlet.jar file and let us know where it is? Then we can instruct you how to put this in your classpath.
0
pak_slmAuthor Commented:
i search servlet.jar but not found. So, i add jsdk.jar in classpath and solved the problem.

Thanks for comments.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

girionisCommented:
 I am glad you solved it. Can you please ask a moderator to PAQ the question and refund the points back to you?
0
CleanupPingCommented:
pak_slm:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
girionisCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- To be PAQed and points refunded.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

girionis
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

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.