Originally posted by Bosun Bello: For the Java compiler to be able to compile Servlets, you need to add the servlet jar files to your Java class path.
he did, he just did it wrong.
keeneth, in windows you must use ";" instead of ":" as the separator in the classpath.
try again like this: javac -classpath "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar";classes;. -d classes "D:\Study\SCWCD Exam\MyProjects\beerV1\src\com\example\web\BeerSelect.java"
also, i would advice against compiling from that path, you'll do better with something like: "cd \Study\SCWCD Exam\MyProjects\beerV1\" and then "javac -classpath C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar;classes;. -d classes src\com\example\web\BeerSelect.java"