----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Thanks for your decent answer! I tried all your hints and checked the
jsdk.jar file! the size of the file is OK! But if I type:
jar -tvf jsdk.jar
This error message appears:
java.lang.NoClassDefFoundError: sun/tools/jar/Main
at java.lang.Throwable.<init>(Throwable.java:40)
at java.lang.Error.<init>(Error.java:21)
at java.lang.LinkageError.<init>(LinkageError.java:21)
at
java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:21)
Is my jdk the failure reason? I have a jdk 1.2.2 RC 3. For installation I
only executed the .sh file!
Thanks for helping again
> >What does it mean, if the file doesn't gives the line mentioned? What
should
> >I do if the right line doesn't appears??
> >I only unpacked the jsdk! maybe a broken jsdk??
> >thanks for your further hints
> >
>
> Basically, it means you don't have the JSDK2.0 package (or you have a
broken
> unzip command!?!).
>
> When java needs to find a class, (i.e. javax.servlet.Servlet), it searches
> for the file "javax/servlet/Servlet.class" relative to all of the
directories
> in the CLASSPATH. A ".jar" file acts like a directory system full of
files.
> You can inspect what is in a directory with "ls", but you need to use the
> "unzip -l" command to inspect what is in a ".jar" file (which is just a
".zip"
> file by another name). Alternatively, you can use the "jar" command
> ("jar -tvf jsdk.jar") to list the contents of a ".jar" file. The
"unzip -l"
> listing of my jsdk.jar (JSDK-2.0) file is shown below.
>
> Please beware that other jar files may inadvertently be in your CLASSPATH
> which have a "javax/servlet/Servlet.class" file in them, and you must
ensure
> that all such jar files (and directories) are _not_ in your CLASSPATH.
> Other jar files that might have this class include the
> "jswdk-1.0.1/lib/servlet.jar" file (Servlets 2.2) (!?!).
>
> Also, my jsdk.jar file is 76453 bytes.
>
> sequoia[spadkins]:/usr/local/JSDK2.0/lib> ls -l
> total 76
> -r--r--r-- 1 spadkins localadm 76453 Apr 21 1998 jsdk.jar
>
> If you don't have this file, get it from
>
> http://java.sun.com/products/servlet/download.html (Downloads Archive)
>
> Download "jsdk20-solaris2-sparc.tar.Z".
> Unpack it in /usr/local with
>
> uncompress < jsdk20-solaris2-sparc.tar.Z | tar xvf -
>
> Check that the file in /usr/local/JSDK2.0/lib/jsdk.jar has the size and
> contents as described.
>
> Sorry to be long-winded, but I am hoping this answers your questions
> and we don't need to go back and forth on this a lot before you achieve
> success.
>
> Stephen Adkins
> [EMAIL PROTECTED]
>
> P.S. "unzip -l jsdk.jar" output follows...
>
> Archive: jsdk.jar
> Length Date Time Name
> ------ ---- ---- ----
> 0 04-21-98 12:29 javax/
> 0 04-21-98 12:30 javax/servlet/
> 0 04-21-98 12:31 javax/servlet/http/
> 3028 04-21-98 12:30 javax/servlet/http/HttpUtils.class
> 931 04-21-98 12:30 javax/servlet/http/HttpServletRequest.class
> 2561 04-21-98 12:31 javax/servlet/http/Cookie.class
> 2332 04-21-98 12:31 javax/servlet/http/HttpServletResponse.class
> 630 04-21-98 12:31 javax/servlet/http/HttpSession.class
> 328 04-21-98 12:31 javax/servlet/http/HttpSessionContext.class
> 5381 04-21-98 12:30 javax/servlet/http/HttpServlet.class
> 2749 04-21-98 12:30 javax/servlet/http/NoBodyResponse.class
> 709 04-21-98 12:30 javax/servlet/http/NoBodyOutputStream.class
> 677 04-21-98 12:31
javax/servlet/http/HttpSessionBindingEvent.class
> 348 04-21-98 12:31
javax/servlet/http/HttpSessionBindingListener.class
> 531 04-21-98 12:29 javax/servlet/Servlet.class
> 355 04-21-98 12:30 javax/servlet/ServletException.class
> 383 04-21-98 12:29 javax/servlet/ServletConfig.class
> 490 04-21-98 12:30 javax/servlet/ServletResponse.class
> 879 04-21-98 12:30 javax/servlet/ServletRequest.class
> 689 04-21-98 12:30 javax/servlet/ServletContext.class
> 2022 04-21-98 12:30 javax/servlet/ServletOutputStream.class
> 481 04-21-98 12:30 javax/servlet/ServletInputStream.class
> 869 04-21-98 12:30 javax/servlet/UnavailableException.class
> 200 04-21-98 12:30 javax/servlet/SingleThreadModel.class
> 1739 04-21-98 12:30 javax/servlet/GenericServlet.class
> 0 04-21-98 12:29 sun/
> 0 04-21-98 12:31 sun/servlet/
> 0 04-21-98 12:31 sun/servlet/util/
> 1422 04-21-98 12:31 sun/servlet/util/Ascii.class
> 1794 04-21-98 12:31 sun/servlet/util/Pool.class
> 914 04-21-98 12:31 sun/servlet/util/Queue.class
> 276 04-21-98 12:31 sun/servlet/util/QueueFullException.class
> 278 04-21-98 12:31 sun/servlet/util/QueueEmptyException.class
> 0 04-21-98 12:32 sun/servlet/http/
> 7228 04-21-98 12:31 sun/servlet/http/HttpDate.class
> 1223 04-21-98 12:31 sun/servlet/http/HttpDateUpdater.class
> 3015 04-21-98 12:31 sun/servlet/http/HttpInputStream.class
> 4628 04-21-98 12:31 sun/servlet/http/HttpOutputStream.class
> 15034 04-21-98 12:31 sun/servlet/http/HttpRequest.class
> 372 04-21-98 12:32 sun/servlet/http/InvalidRequestException.class
> 3921 04-21-98 12:32 sun/servlet/http/HttpRequestLine.class
> 2543 04-21-98 12:32 sun/servlet/http/MessageString.class
> 2636 04-21-98 12:32 sun/servlet/http/MessageBytes.class
> 4855 04-21-98 12:32 sun/servlet/http/MimeHeaders.class
> 846 04-21-98 12:32 sun/servlet/http/MimeHeadersEnumerator.class
> 3775 04-21-98 12:32 sun/servlet/http/HttpSessionImpl.class
> 3463 04-21-98 12:32 sun/servlet/http/SessionContextImpl.class
> 12709 04-21-98 12:32 sun/servlet/http/HttpResponse.class
> 1751 04-21-98 12:32
sun/servlet/http/HttpResponse$OldCookieExpiry.class
> 270 04-21-98 12:32 sun/servlet/http/HttpRequestListener.class
> 4090 04-21-98 12:32 sun/servlet/http/MimeHeaderField.class
> 3623 04-21-98 12:32 sun/servlet/http/CacheControlHeader.class
> 8643 04-21-98 12:32 sun/servlet/http/HttpServer.class
> 443 04-21-98 12:32 sun/servlet/http/HackURLConnection.class
> 4974 04-21-98 12:32 sun/servlet/http/HttpServerHandler.class
> 1970 04-21-98 12:32 sun/servlet/http/HttpServletConfig.class
> 535 04-21-98 12:31 sun/servlet/ServletConnection.class
> 5046 04-21-98 12:31 sun/servlet/ServletLoader.class
> ------ -------
> 130589 58 files
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]