• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why to have achive,it need still code?

 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in <applet></applet>
why to have <achive>,it need still <code>?
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Liang,
Quite simply archive tells it where all supporting classes can be found (similar to: CLASSPATH) and code tells it which class to execute (similar to: java thisClass).
Regards,
Manfred.
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't package the applet code in a JAR and use the ARCHIVE feature, the client has to request the applet's various class files one at a time, uncompressed, from the server. It's both tidier and more efficient to use a JAR, unless you're doing something very basic like a small one-class applet.
 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if have archive between <applet> and </applet>, what purpose for putting codebase ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic