I used
javac - classpath XXXXX\servlet.jar MyServlet.java

Where XXXXX is the directory where my servlet.jar file is

But a better solution would be to

set CLASSPATH=XXXXX\classes.zip;YYYYY\servlet.jar

Where XXXXX is the dir where your classes.zip files are
and YYYYY is where your servlet.jar file is

Add/Edit this line in the Autoexec.bat file

-----Original Message-----
From: Mauricio Villa <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: December 26, 2000 5:12 PM
Subject: Re: Coding Servlets(primitive question)


>I have the same problem, if you find the answer would you like to help me?
>
>-----Original Message-----
>From: Faisal Mahdi [mailto:[EMAIL PROTECTED]]
>Sent: Lunes, 25 de Diciembre de 2000 12:41 p.m.
>To: [EMAIL PROTECTED]
>Subject: Coding Servlets(primitive question)
>
>
>Hi,
>
>I need help in coding Java Servlets.
>
>I am using Sun's JDK 1.2.2 which hasn't got the javax.servlet package
>integrated into it.
>I managed to download the Javax.servlet Servlet API files which is basicly
a
>servlet.jar file
>
>Now where can I put this file to be able to code without getting package
not
>found errors when i compile, and does this have to do with the CLASSPATH
>which is = to C:\JDK1.2.2\lib\classes.zip
>
>I also tried :
>javac -classpath XXXXX MyServlet.java
>
>but i get the same error :
>Properties.java:3: Package javax.servlet not found in import
>import javax.servlet.*;
>
>Does sun provide a free download of a Servlet Development Kit?
>
>Or how can I get this to work
>
>___________________________________________________________________________
>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

___________________________________________________________________________
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