This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi, I am trying to convert the servlet example in the first chapter of the Head First Servlets and JSP book. I have sucessfully installed Tomcat 5.0.30. My path variable is set to " D:\Sun\jwsdp-1.6\jwsdp-shared\bin;D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\;D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\Bin;D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\;D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;D:\Qt\3.2.1NonCommercial\bin;D:\tomcat\bin;D:\tomcat\common\lib\servlet-api.jar" I have tried setting the classpath in the environment variable instead of using the command line option, but nothing seems to work. Has anyone ever had a similar experience or can anyone profer a solution? Thanks in advance
I tried c:\jspfiles\project1> javac -classpath .;c:\tomcat\common\lib\servlet-api.jar -d classes src\Ch1Servlet.java
after reading your comments, but it changes nothing. I also tried c:\jspfiles\project1> javac -classpath .;c:\tomcat\common\lib\servlet-api.jar;c:\java\jdk1.5.0_05\lib\tools.jar -d classes src\Ch1Servlet.java
So your code has "HtppServlet" and the error message says "HttpServlet"? Did you actually copy and paste the code and the error messages, or did you type it in? Because what's in your message can't be what's actually happening.
Joined: Feb 16, 2004
thx 4 ur all answers, located the problem after a whole weekend ... Http instead of Htpp :-(