Yes, the javax.servlet package is located in the Enterprise package(if you
downloaded the enterprise edition) or it is in your JSDK package if you download
the JSDK package.
So, what you need to do is add that to your classpath also, for example,
set classpath = g:\JEE\lib\j2ee.jar; %classpath%
where g:\JEE is where you installed the Enterprise package and j2ee.jar is the
package that has all the servlet stuff.
If you downloaded the JSDK then do the same thing but look for jsdk.jar, for
example
set classpath = g:\jsdk\lib\jsdk.jar;%classpath%
One other note, sometimes windows does not the classpath set right if it is set
in the autoexec.bat file. Do a echo %classpath% to see what is set in the
classpath.
So if the above still does not work then clear the classpath and reenter all the
classpaths. for example
set classpath=
That clears it then
set classpath= c:\jdk1.2.1\lib\tools.jar;g:\jsdk\lib\jsdk.jar; and any other
paths you may need.
"Ennarah, Hisham" wrote:
> Hello ,
> I'm new to Java Servlet world . I installed the JSWDK ver 1.0 ; I'm using
> Windows 95 and JDK 1.2 . I added classpath environment variable to the
> autoexec.bat file (set CLASSPATH = c:\jdk1.2.1\lib\tools.jar;%CLASSPATH%) .
> I also added the same environment variable to my registries . But still any
> time I try to compile a java code file which uses the javax.servlet package
> I get the error that the package javax.servlet not found . Has any body have
> an idea how I could solve this ?
>
> Thanks for your time :-)
>
> Hisham M. Ennarah
>
> ___________________________________________________________________________
> 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