Bodix,
Two things to keep in mind.
First:
The more you crosspost your question and/or re-ask them in the same forum, the less people will want to help you.
This is the third
thread that you've started for the same issue.
You were getting plenty of help in this one:
https://coderanch.com/t/408729/java/java/Compler-Errors Starting a new thread only adds confusion, causes duplication of effort, and annoys the people who who have made suggestions, only to find out that someone else has already suggested the same thing to you in another thread.
If you think your question isn't getting good enough answers, see:
http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch for some tips on improving the quality of your question.
Second:
A
servlet is a
Java class.
Like most non trivial Java classes, it has some dependencies that you will have to satisfy in order to compile it.
If you're having a hard time getting your servlet to compile because you're unsure about packages, javac, or classpaths, I suggest you step back from servlet programming for a bit and find a book or tutorial on Java.
It's a lot easier to gain an understanding of packages and classpaths when working with small command line applications. If you already have a firm grip on these issues, learning servlets will be a lot easier and enjoyable.