Problem of "can't find class file".
Saturday, August 14, 2010
Many time we have successfully added the class to a JAR, but when the web page tries to load the applet, the browser gives us an error "can't find class file". When unzipping the JAR, my added class is present.
Do not forget to add the "ARCHIVE" option to the APPLET tag like this
<applet code=my.class archive=archive.jar width=10 height=10>
</applet>
If "archive" is missing the browser will not know that your class is in a jar file...

1 comments:
Good Post.
Post a Comment