Because, Cookie.java does not have a "main" method
and it is not Example! it's source of JSWDK API!
if you want to try execute examples, u can find it in derictory
examples/WEB_INF/Servlets/CookeExample.java :)
Good Luck!
Andrew
----- Original Message -----
From: Raffiudeen Illahideen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 13, 1999 2:00 PM
Subject: Can't compile Servlets! :-(
> Hello All;
> I have downloaded the jswdk1.0 today, and I was testing some existed
java
> files, named Cookie.java. I have downloaded the jswdk in the following
> directory in my hard drive
>
> C:\unzipped\jswdk1_0-win\jswdk-1.0\src\javax\servlet
> ==the Cookie.java is in the http folder which is under the servlet folder.
> When I compile through JDK1.2 via DOS I got the following errors after
> successful compilation.
>
> ERROR MESSAGE:
>
> C:\unzipped\jswdk1_0-win\jswdk-1.0\src\javax\servlet\http>javac
Cookie.java
>
> C:\unzipped\jswdk1_0-win\jswdk-1.0\src\javax\servlet\http>java Cookie.java
> Exception in thread "main" java.lang.NoClassDefFoundError: Cookie/java
>
> C:\unzipped\jswdk1_0-win\jswdk-1.0\src\javax\servlet\http>
>
> ===========PLEASE HELP ME IF I AM DOING SOMETHING WRONG! THANKS
>
> rAFFI
> [EMAIL PROTECTED]
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
___________________________________________________________________________
> 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