hi stig,
u cannot compile servlets with JDK 1.2.2
u have to add the jar file (jsdk.jar) path in the class path, then it will
compile properly, otherwise it will give  same error for that.
If jsdk.jar file is present in ur <javadir>/jre/lib directory then it should
not be a problem

Happy servlet programming.

regards
nebu

-----Original Message-----
From: Townsend, Stig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 5:37 PM
To: [EMAIL PROTECTED]
Subject: Compiling servlets with JDK 1.2.2


The documentation for Servlet dev kit 2.0 says that it is no longer needed
with Java dev kit 1.2 onwards.  However, having installed JDK 1.2.2, I can
compile a 'hello world' class but not a servlet.  It reports errors:
        Package javax.servlet not found in import
        Package javax.servlet.http not found in import.

Is it true that JDK 1.2.2 is sufficient to compile and run servlets, and if
so, do you have any idea of what I may be doing wrong?

Stig Townsend

Software Division, Fox IT
(incorporating Ultracomp Ltd)
[mailto:[EMAIL PROTECTED]]

___________________________________________________________________________
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