problem compiling servlet
Hi all,
I have been trying to learn servlets for the past week. I wrote a sample example and am trying to compile it but have been getting problems.
When I write javac -classpath /personal practice/tomcat/common/lib/servlet-api.jar -d classes src/Ch1Servlet.java on the command line I get the message that 'javac' is not recognised as an internal or external command,operable program or batch file.
My source file Ch1Servlet.java is under project1/src directory
I want my class file to be placed under project1/classes directory
I have also mentioned the path of the servlet-api.jar in the command.
My classpath has been set to C:/program files/java/jdk1.6.0_12/bin
I just can't figure out why javac is not being recognised as a command.
Can anyone please help me.