i have number of applet class files inside a folder say classes/applets. now these applet class files to be embedded in a jsp page, here classes is not the package name of applets,instead, it is simply a folder in which i want to put applets rather than in jar directly. my problem is, if i jarred these class files along with folder like this
then what should i write in *Archieve* attribute of the applet tag to acces these file from jsp?
The archive attribute contains the name of the file; so it would be "myjar.jar" in this case. But that's only going to work if the directory structure in the jar file mirrors the package hierarchy of the classes. For example, if the package name is "com.example.myapplet", then "com" must be a top-level directory in the jar file. It can't be inside of another directory (like "classes").