I still have a problem on page 85 of Head First Servlets and JSP that I have not been able to figure out.
I can't help myself because I don�t fully understand the two class paths in the line. javac -classpath "C:\Program Files\ApacheSoftwareFoundation\Tomcat\common\lib\servlet-api.jar:". -d classes src/com/examples/web/BeerSelect.java
Here is my what I have, and result
servlet-api at C:\Program Files\ApacheSoftwareFoundation\Tomcat\common\lib\servlet-api.jar
model class at C:\java\JSPHFprojects\beerV1\src\com\example\model\BeerExpert.java
servlet at C:\java\JSPHFprojects\beerV1\src\com\example\web\ BeerSelect.java
any help much appreciated
when in doubt put it in parenthesis and stick a dollar sign in front of it, only good can come from this.
I am having the exactly same problem. For me, model@ D:\MyProjects\beerV1\src\com\example\model\BeerExpert.java servlet@ D:\MyProjects\beerV1\src\com\example\web\BeerSelect.java servlet-api@ C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar Now I am trying to compile using: javac -classpath "C:\Tomcat\apache-tomcat-5.5.23\common\lib\servlet-api.jar;". -d classes -sourcepath src/com/examples/web/BeerSelect.java
Still it is not getting compiled giving the following error:
javac: no source files Usage: javac <options> <source files> use -help for a list of possible options
Please help. Also I don't know the usage of . after "c:\Tomcat...\servlet-api.jar;"