tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Kolinko" <knst.koli...@gmail.com>
Subject Re: Classpath problem
Date Sun, 04 Jan 2009 01:41:44 GMT
2009/1/4  <FHSerkland@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message