Sathya Narayanan wrote:
> 
> Hi,
> 
> When I compile a servlet, "javac HelloWorldExample.java"
> I get the error
> package javax.servlet and javax.servlet.http not found
> 
> I have installed jdk1.2.2 and the tools.jar file is put in the in the
> classpath.

the javax.servlet.* packages are in servlet.jar which should
have come with your Tomcat installation. Since this is a
"standard extension" library, copy servlet.jar to 
 yourJDK/jre/lib/ext

which is where javac looks for standard extensions.
Alternately you could put it on your classpath, or otherwise
specify it to the compiler.

-- 
WBB - [EMAIL PROTECTED]  Chief Scientist, LANWrights, Inc.
Java Programmer Certification information and mock exam
at  http://www.lanw.com/java/javacert/

Reply via email to