Keep in mind that your applet is running in the browsers VM, unless you use
the java plugin.
it might not be finding a needed class in the VM (e.g. browsers do not
support swing).
Make a simple java 1.0 applet and see if that works.
The other suggestion I have is to maybe put all needed classes for your
application into a single jar file. It has been a while since I have done
applets, but I've had problems in Netscape trying to download more than 1
jar.
Also, make sure you run the browsers Java console and make sure you know
exactly what class is not being loaded.
good luck...
john
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kate
Hocking
Sent: Thursday, September 28, 2000 8:56 PM
To: [EMAIL PROTECTED]
Subject: Re: error: java.lang.NoClassDefFoundError
yeah...this gave me endless days of trouble.
make sure you have the class you have created in your class path, and also
make sure you have the dir in you classpath
ie:
c:\jswdk-1.0.1\webpages\Web-inf\servlets\.;c:\jswdk-1.0.1\webpages\Web-inf\s
ervlets\MyClass.class
If you are using beans, it may help to put them in a package, but keep the
class accessing them in the level above the package.
hope this helps,
k8
-----Original Message-----
From: Benicio M. Sanchez [mailto:[EMAIL PROTECTED]]
Sent: Friday, 29 September 2000 9:48
To: [EMAIL PROTECTED]
Subject: Re: error: java.lang.NoClassDefFoundError
It is not finding my classes.
I am running NT 4.0 and I setup the classpath at start|settings|control
panel|system|environment
Is it better to set it on the Autoexec.bat file?
thanks!
----- Original Message -----
From: Kate Hocking <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 28, 2000 9:33 PM
Subject: Re: error: java.lang.NoClassDefFoundError
> check your classpath again.
>
> Is it not finding *your classes, or a library class file??
>
> try setting the classpath in the autoexec.bat
>
> -----Original Message-----
> From: Benicio M. Sanchez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 29 September 2000 9:24
> To: [EMAIL PROTECTED]
> Subject: error: java.lang.NoClassDefFoundError
>
>
> I know I am risking a flame, but... I truly have tried everything. I
> searched for "java.lang.NoClassDefFoundError" and did not find any matches
> in the archives. Maybe someone can shed some light...
>
> I am importing a class in an applet. The webpage in which the applet is
> invoked is dynamically generated by a servlet.
>
> -When compiling my servlet I get no errors
> -When compiling my applet I get no errors
>
> ... , however when running my servlet from certain machines (including the
> one on which my web server is running) I get a: "error:
> java.lang.NoClassDefFoundError" message on the status bar and the applet
is
> not loaded.
>
> I have copied my class virtually everywhere in my classpath, with no
> success.
> I have tried changing my codebase in the <applet> call, nothing.
>
> I could really use some help...
>
> Thanks in advance for your attention!
>
> Benicio Sanchez
> Information Networking Institute
> Carnegie Mellon University
>
>
___________________________________________________________________________
> 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
>
____________________________________________________________________________
> ________________________________________
>
> IMPORTANT: This email is intended only for the use of the individual or
> entity named above and may contain information that is confidential and
> privileged. The views expressed in this e-mail are those of the author and
> not of the company unless otherwise clearly indicated. When addressed to
> our clients, any information or quotes contained in this e-mail are
subject
> to the terms and conditions relevant at that time to the matter being
> addressed. If you are not the intended recipient and have received this
> e-mail in error, please notify us immediately by return email or telephone
> +61 8 93235555 and delete the e-mail and any attachments without using or
> disclosing the contents in any way. If you are not the intended recipient
> any dissemination, distribution or copying of this e-mail is strictly
> prohibited. Before opening or using attachments, check them for viruses
and
> defects. Our liability is limited to re-supplying any affected
attachments.
>
>
___________________________________________________________________________
> 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
____________________________________________________________________________
________________________________________
IMPORTANT: This email is intended only for the use of the individual or
entity named above and may contain information that is confidential and
privileged. The views expressed in this e-mail are those of the author and
not of the company unless otherwise clearly indicated. When addressed to
our clients, any information or quotes contained in this e-mail are subject
to the terms and conditions relevant at that time to the matter being
addressed. If you are not the intended recipient and have received this
e-mail in error, please notify us immediately by return email or telephone
+61 8 93235555 and delete the e-mail and any attachments without using or
disclosing the contents in any way. If you are not the intended recipient
any dissemination, distribution or copying of this e-mail is strictly
prohibited. Before opening or using attachments, check them for viruses and
defects. Our liability is limited to re-supplying any affected attachments.
___________________________________________________________________________
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