This error depends in which environment you are compiling the servlet. Many free
IDE's need to know where you've placed the jar-files containing the classes you're using. For example, under Eclipse the classpath variables can be viewed with the menu options Windows - preferences -
Java.
If you're using another IDE or even if you're using a DOS box, then it will be different. So, in which environment are you compiling your servlets ?