Hi,
    No don't Unjar it.
This is a simple understanding of CLASSPATH problem.

Your CLASSPATH must contain the path to directories where .class files reside
or the full path to .jar files inside which there may be .class file.
The reason for this is that if you were to extract your .jar file (which is
what the JVM effectivly does!) you would find that it contained a whole
directory/package structure and to use the .class files you would have to add
the full paths for all the extra directories that contained classes.

So ... make your CLASSPATH like so
   set CLASSPATH=e:\jsdk2.0\lib;e:\jsdk2.0\lib\jsdk.jar;%CLASSPATH%
(for a windoze environment)

Karl

giridhar banigallapati wrote:

> Hi,
> I am new to servlets.
> I have a written a simple servlet.
> When I am compling , compiler is throwing error messages that it is
> unable to find the
> packages required for the servlets.
> My class path has e:\jsdk2.0\lib which contains jsdk.jar.
> Then I extracted the jar file and then compiled my program. It worked
> fine.
> Do we need to really extract the jar file???.
> Do I need to to give some option with javac.
>
> Thanks
> Giri
>
> ___________________________________________________________________________
> 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