2009/1/4  <fhserkl...@aol.com>:
> Hello.  I am using Tomcat 6.0.18, my Java version is 1.6.0_11 and I  have a
> servlet called TestingServlet.java.  My classpath reads like  this:
>
> .;C:\Sun\SDK\bin; C:\Sun\SDK\jdk\bin; C:\Tomcat\lib\servlet-api.jar
>
> I cannot compile in DOS without typing:
>
> javac -classpath C:\Tomcat\lib\servlet-api.jar TestingServlet.java
>
> I cannot understand why I am being required to specify the servlet api when
> I have it in my classpath.

I guess that is because spaces are not allowed in the value.

Try:
set CLASSPATH=.;C:\Sun\SDK\bin;C:\Sun\SDK\jdk\bin;C:\Tomcat\lib\servlet-api.jar

or better
set CLASSPATH=.;C:\Tomcat\lib\servlet-api.jar

I do not know why you are adding those bin folders to the classpath.
There are no class files there.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to