Try the following command:
set
This will display a list of environment variables and you should be able to see if the
CLASSPATH is set properly or not...
By the way, did you set the variable TOMCAT_HOME to something? If so, does it have a
space in it? If so, put all references to TOMCAT_HOME (meaning all the %TOMCAT_HOME%
'words') between double quotes.
ie:
SET
CLASSPATH=.;"%TOMCAT_HOME%"\LIB\WEBSERVER.JAR;"%TOMCAT_HOME%"\LIB\SERVLET.JAR;%CLASSPATH%
Regards,
--
Pierre
simon wrote:
> Hi
>
> I have add the another line in the autoexec.bat file
>
> SET
> CLASSPATH=.;%TOMCAT_HOME%\LIB\WEBSERVER.JAR;%TOMCAT_HOME%\LIB\SERVLET.JAR;%CLASSPATH%
>
> but the problem remain when I compile the file in dos.
>
> The one of the error messages is that "packet javax.servlet.http does
> not exist."
>
> Can someone help me?
>
> Simon