>ClassNotFound
I think you mean NoClassDefFoundError
see http://mindprod.com/jgloss/caq.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
C P - 14 Feb 2006 12:52 GMT
Hello
Yes, but can someone help as to the correct syntax. I need to be edified as
to what is correct, as I beleive the way stated is.
I am trying to access the applet (client.MyApplet.class) in the jar (applets)
from an html (test.html) at the same directory level as the aplets.jar with
this syntax in the html.
<applet codebase="." code="client.MyApplet.class" archive="applets.jar" />
Any help understanding the correct synatx would be greately appreciated.
>>ClassNotFound
>
>I think you mean NoClassDefFoundError
>
>see http://mindprod.com/jgloss/caq.html
Roedy Green - 14 Feb 2006 17:15 GMT
><applet codebase="." code="client.MyApplet.class" archive="applets.jar" />
>Any help understanding the correct synatx would be greately appreciated.
see http://mindprod.com/jgloss/applet.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
you have to access the Application in the same way you would an
application form the the commandline...
if your Applet.class had a main method you'd say: java Applet to run
it, that said, try this:
<APPLET codebase="." code="client.Applet" archive="applets.jar"
width=350 height=200></APPLET>
> Hello
> I have an html page with this in it
[quoted text clipped - 6 lines]
> access it with http://localhost/context1/test.html it fails with the typical
> ClassNotFound client.Applet.class. Can someone please expalin? tia.
Files in context of a web application cannot be served by HTTP. This is to
protect the content of your web application directory from being downloaded.
There's a good chance those files contain information which should not be
publicly available.
A URL which is not a servlet is based on the ROOT webapps context, at least it
is in Tomcat 4. In my installation this base is <CATALINA_HOME>/webapps/ROOT/,
and when I use a URL of http://server:8080/java/lib/some.jar it is served from
the directory <CATALINA_HOME>/webapps/ROOT/java/lib.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555