Am Mittwoch, 5. November 2003 19:02 schrieb Javier:
> Hi
>
> I'm trying to compile my first servlet but I�ve
> problems with javac.
>


Hi - "Java Examples in a Nutshell" - David Flanagan
- page 460 - in the 2nd Edition:

"Compiling Servlets

Your servlet conainer should come with a JAR file that contains the class 
files for the Servlet API. It will probably be in a file named 
"lib/servlets.jar". You need this JAR file to be able to compile the classes 
in this chapter. [ remark ... Well - not only those in this book I guess - 
Jan ... ] Either edit your _CLASSPATH_ environment variable to include the 
file or place a copy of the file in the "lib/jre/ext/" directory of your Java 
SDK, where the Java VM can find it automatically. Once you have done this, 
you can compile servlet classes with "javac", just as you would compile other 
Java classes. If you cannot find the Servlet API classes in your servlet 
container distribution, you should be able to download them from Sun�s web 
site ("http://java.sun.com/products/servlet/";). Be careful to download a 
version that matches the specifications supported by your servlet container."



Hope it helps - Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to