• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applets inside a folder

 
John Mclain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello there,

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?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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").
 
John Mclain
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply

regards
Ulf
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic