aspose file tools*
The moose likes Applets and the fly likes where is the code saved on client side ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "where is the code saved on client side ?" Watch "where is the code saved on client side ?" New topic
Author

where is the code saved on client side ?

Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
A very very simple question --- when a client user download an applet to view it, it must download the bytecode through internet, so is the bytecode saved on local PC ? if so, what directory ? If I view an applet from a browser opened on a Unix workstation, then where is the bytecode saved ?
thanks,
steve
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

It depends on the browser. The browser maintains disk and memory caches for downloaded items. Often the sizes of the caches can be tuned, but the tuning and location of these caches is very much dependent on the way the browser was implemented.
Java classloaders are not required to actually load from disk. It's perfectly legal to have classloaders build up classes from non-disk sources.


Customer surveys are for companies who didn't pay proper attention to begin with.
Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
Originally posted by Tim Holloway:
It depends on the browser. The browser maintains disk and memory caches for downloaded items. Often the sizes of the caches can be tuned, but the tuning and location of these caches is very much dependent on the way the browser was implemented.
Java classloaders are not required to actually load from disk. It's perfectly legal to have classloaders build up classes from non-disk sources.

so do you mean it is downloaded to the cache of local machine ?
 
Consider Paul's rocket mass heater.
 
subject: where is the code saved on client side ?