• 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
Bartender
Posts: 18472
61
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 ?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!