Re: don't know how to compile the servlet program

2000-11-09 Thread Pierre Neihouser

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




RE: don't know how to compile the servlet program

2000-11-08 Thread Kwan, Kenneth Y

Seems you have missed the servlet.jar
 
Kenneth Kwan

-Original Message-
From: simon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 10:50 AM
To: [EMAIL PROTECTED]
Subject: don't know how to compile the servlet program


Hi 
 
I can run jsp file in Tomcat server 3.1 but not servlet. 
Could you tell me how to compile a servlet file to get its class file? My
autoexec.bat is like this:
 
{..}
SET TOMCAT_HOME=D:\JSPTOOL\TOMCAT
SET JAVA_HOME=D:\JAVATOOL\JDK1.3
SET PATH=D:\JAVATOOL\JDK1.3\BIN;D:\JAVATOOL\JDK1.3\LIB\CLASSES.ZIP; SET
CLASSPATH=D:\XML4J-3_1_0\XML4J.JAR;D:\LOTUSXSL_1_0_1\LOTUSXSL.JAR;D:\LOTUSXS
L_1_0_1\XALAN.JAR;D:\LOTUSXSL_1_0_1\XERCES.JAR

Thanks in advance
 
Simon