Hi i suspect ur servlet or applet doesnt have a main function and that is
the error which it returns.  Becoz for any java application to run u need
to have a main method in servlet and applets normally we dont have becoz
we are going to run them via the browsers

Thanks
Srini


  #-----------------------------------------------------------------------#
  #                                                                       #
  #           "ARISE AWAKE and stop not till the GOAL is reached"         #
  #                                                                       #
  #                     [EMAIL PROTECTED]                          #
  #-----------------------------------------------------------------------#

On Wed, 18 Aug 1999, Anukool Lakhina wrote:

> Hello,
>
> I'm using JDK1.2.2 and JSDK2.1. So far, javac works great and compiles
> beautifully. But when I try and do java <ClassName>, I get the following
> error:
> "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"
>
> I thought it was a bug in my servlet code, but then I noticed it happens
> even on the trivial HelloWorld example.  Even the demo applets that come
> with jdk1.2.2, don't run when invoked with java <APPLETNAME> (they compile
> ok). Funny thing is that when I run the applets using MS jview
> (C:\winnt\jview <APPLET_CLASS_NAME>), the applets run ok.
>
> Please help me so that I can go back to working on servlets without having
> to worry about issues like this. (Oh and I'm using a dual processor machine,
> NT box. Shouldn't change anything but perhaps this is causing the
> headaches?)
>
> Thanks!
>
>
> anukool.
>
> ___________________________________________________________________________
> 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