D:\demo tomcat compile>javac -classpath "C:\Tomcat 6.0\lib\servlet-api.jar" *.ja
pvaluessrv.java:14: cannot access javax.servlet.http.HttpServlet bad class file: C:\Tomcat 6.0\lib\servlet-api.jar(javax/servlet/http/HttpServlet
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
public class pvaluessrv extends HttpServlet ^
j2ee.jar was probably compiled under Java 5. The Tomcat 6.0 servlet-api.jar was compiled under Java 6. When you call "javac" from the command line, it would seem you have a Java 5 compiler, which will be able to use j2ee.jar, but not the Tomcat 6 servlet-api.jar.
You should either look at Tomcat 5.5 for servlet-api.jar, or consider upgrading your JDK to Java 6.
In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower