----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
set your classpath to include jsdk.jar
On Tue, 11 Jan 2000 [EMAIL PROTECTED] wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hello,
>
> I installed ApacheJServ 1.1b3, on linux 2.2.12, with
> java version "1.2" Classic VM (build Linux_JDK_1.2_pre-release-v2,
> native threads, sunwjit), JSDK2.0 (jsdk20-solaris2-sparc.tar.Z),
> apache 1.3.9. The Jserv seems to be working fine, it runs the test
> servlets that came with Jserv.
>
> My problem is that when I try to compile examples servlets from
> java.sun.com i get this errors:
>
> javac BookStoreServlet.java
> BookStoreServlet.java:21: Package javax.servlet not found in import.
> import javax.servlet.*;
> ^
> BookStoreServlet.java:22: Package javax.servlet.http not found in import.
> import javax.servlet.http.*;
> ^
> BookStoreServlet.java:28: Superclass HttpServlet of class BookStoreServlet
> not found.
> public class BookStoreServlet extends HttpServlet {
> ^
> 3 errors
>
> The same happens with all codes.java that calls javax.servlet.*.
> I can not locate that file in my server. The closest thing I see is
> in the ../JSDK2.0/doc/apidoc has some files named as javax.servlet.*.html.
> I know this is not what the compiler is looking for, since they are all
> .html.
>
> Do I need to download or compile anything else so I can have access to the
> import files "javax.servlet.*".
>
> Javac seems to work ok as long as I dont call thouse import files.
>
> Thanks in advance
> david
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]