Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

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.
0
pak_slm
Asked:
pak_slm
1 Solution
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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