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
Re: java.lang.NoClassDefFoundError
Srinivasan S (Systems Engineering Group) Tue, 17 Aug 1999 23:36:59 -0700
- java.lang.NoClassDefFoundError Anukool Lakhina
- Re: java.lang.NoClassDefFoun... Joona I Palaste
- Re: java.lang.NoClassDef... Anukool Lakhina
- Re: java.lang.NoClassDefFoun... Hans Bergsten
- Re: java.lang.NoClassDefFoun... Srinivasan S (Systems Engineering Group)
- Re: java.lang.NoClassDefFoun... Jebu Ittiachen
- Re: java.lang.NoClassDefFoun... Smith, John H
- Re: java.lang.NoClassDefFoun... Pascal Houde
- java.lang.NoClassDefFoundErr... Michael Chung
- Re: java.lang.NoClassDefFoun... John John Tobias
- Re: java.lang.NoClassDef... Michael Chung
- java.lang.NoClassDefFoundErr... Anders Jørvad (RWDK)
- Re: java.lang.NoClassDef... Gaurav Vaish
- Re: java.lang.NoClassDef... Chris Pratt