On Tue, 6 Jul 1999, Nathan Pienkowski wrote:

> When I compile any servlet that imports javax classes, it fails
> because the javax packages cannot be found.  I assume that the
> servlet.jar or server.jar files located in the D:\jsdk2.1 directory
> contain the javax classes that the compiler needs.  Thus, my
> classpath reads verbatim "CLASSPATH
> D:\jsdk2.1;D:\inetpub\servletexec\isapi\lib". How can I get the
> compiler to locate these classes?  Anyone care to help a frustrated
> beginner who is considering a different career?  Thanks in advance.
[ ... ]

This is really a basic Java/CLASSPATH question (isn't there a web page
that covers all kinds of classpath issues? -- I have a vague
recollection that it's maintained by someone named Gene who
reads/posts to this list -- www.meangene.com might be the domain
name).

Anyway, what's going on here is that jar/zip files must be named
explicitly in the classpath, it is not sufficient to just put the
directory they're in in the classpath.  So, if it's servlet.jar in the
director D:\jsdk2.1, you need to add D:\jsdk2.1\servlet.jar to the
classpath.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[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

Reply via email to