On Thu, 2 Sep 1999, Stephane Petit Jean Genat wrote:

> I am a new on servlet programming, but i think your classpath is not
> correct.
>
> Mine is :
>
> C:\MyDir\Java\jdk1.1.7B\lib;C:\MyDir\Java\Jsdk2.0\src
>
> Try this (with right change) and forward me if it's OK.
>
> Bye
>
> Stephane.
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of S.
> Kenney
> Sent: Thursday, September 02, 1999 8:51 AM
> To: [EMAIL PROTECTED]
> Subject: JDK1.1.8 and JSWDK1_0-win--First compile
>
>
> Hello, fun seekers,
> I have searched my servlet books and Listserv notes and I still cannot
> resolve
> my compile errors.  I have triple checked the classpath to be sure it is
> correct.
>
> My path includes  d:\jdk1.1.8\bin
> My classpath is    d:\jswdk1.0\jswdk-1.0\lib\servlet.jar


if u have the correct path set for servlet.jar then the program should
compile with above setting. i.e
        CLASSPATH=<u'r classes.zip path>;d:\jswdk1.0\jswdk-1.0\lib\servlet.jar
In case the above stuff failes to work
u can try following

1.      cd d:\jswdk1.0\jswdk-1.0\lib\
2.      jar -xvf servlet.jar // unjar the servlet file
        and set classpath to
3.      set CLASSPATH=%CLASSPATH%;d:\jswdk1.0\jswdk-1.0\lib\
==>     try compiling the program...
        Should work
        Mind it this is a workaround.. If the program still fails to
compile then it is strange .

amit

>
> My compile errors are the ever-popular import errors.  For example:
> Package java.servlet not found in import
> import java.servlet.*;
>
> My compile command for a simple servlet is:
> d:\jdk1.1.8\TTTSSrc>javac TttsServ.java
>
> I do not get compile errors on the import statements for java.io.* or
> java.util.*.
>
> Can someone please tell me what is causing this compile error?
>
> I have OReilly's book, Servlet Programming and Karl Moss's book, Java
> Servlets--Second Edition.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

Amit Rustagi
E-mail: [EMAIL PROTECTED]
Office: +91-22-8291261 xtn 2786
Tata Infotech Limited.
Seepz,Andheri
Mumbai-96.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to