O.K. did you get the servlet tutorial thing from sun? Anyway, you need to extract the file to some place - doesn't really matter where - then set the classpath to point to it.
So you will open the dos window and use:
set CLASSPATH=C:\jdk1.3\Servlet\servlet.jar;
This path is just telling the compiler where to look for the class files - make sure you add the .jar.
If you haven't been there - have a look at this from java.sun.com:
but to run you need a JavaServer - and to add these import statements:
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.PrintWriter;
import java.io.*;
I have not had any success geting my JavaServer to run, so I cannot test it, but atleast it compiles!
b2 - benbiddington@surf4nix.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.