Also I have seen this error when the file is there, but the CASE of the name
was different.
For example SimpleServlet did not match simpleservlet in the classloader.
-----Original Message-----
From: Jebu Ittiachen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 18, 1999 9:03 AM
To: [EMAIL PROTECTED]
Subject: Re: java.lang.NoClassDefFoundError
Plain and simple this error is thrown when the class u refer to is
not in the CLASSPATH. Just verify that your CLASSPATH contains the path
where ur HelloWorld stuff is residing. This is in case of applets and
applications.
In case of servlets ensure that the CLASSPATH variable passed to the
JVM used by the servlet engine contains the path of ur servlet. In case of
JSDK just ensure the CLASSPATH environment variable contains this path.
BTW I hope ur not trying to invoke a servlet as java <classname> :->
> -----Original Message-----
> From: Srinivasan S (Systems Engineering Group)
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 18, 1999 1:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: java.lang.NoClassDefFoundError
>
>
> 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
___________________________________________________________________________
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