You need to make sure that the jsdk.jar file is explicitly part of you
classpath, not just the directory where other jar files reside.

Tim Gallagher

-----Original Message-----
From: Your Jianfei Cheng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 22, 1999 12:00 PM
To: [EMAIL PROTECTED]
Subject: simple question


Hi all. this is first time I am using this list.
I got a simple question about coding with JSDK.
I just downloaded JDK2.0 and JSDK2.0. I installed JDK2.0
on my machine. I tried to compile my servlet code.
I keep got error with import javax.servlet.* and import
javax.servlet.http.*
Error message is "Package javax.servlet.http not found in import...."
and "Package javax.servlet not found in import..."

So I tried install JSDK on my machine but in different directory, and I
manually copy
jsdk.jar to my JDK lib directory. I still got same errors. Since import
statements are first line codes
, I really can't do anything with servlet. Could somebody help me out
this
trouble?
My test code is really simple as shown at following.

import java.io.*;
import javax.swing.*;        //see if I can import swing.
import javax.servlet.*;
import javax.servlet.http.*;


After I compile, the first two lines are ok.

Thanks lot.


-jfc

________________________________________________________________________
___
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