user2171669
user2171669

Reputation: 745

Does Java cache applets?

I have simple Applet example downloaded from Oracle: http://docs.oracle.com/javase/tutorial/deployment/applet/examplesIndex.html#HelloWorld (applet_InvokingJavaScriptFromApplet)

When I made first launch, everything worked fine. But when add some my own functions, recompile this code (with ant) and try to launch it again, my htmls cant call added functions?

I cleared browsers cache, tried everything.

My questions

  1. Does Java cache my applets ?
  2. Is first answer Yes, so how to clear this cache ?

Upvotes: 0

Views: 105

Answers (2)

Andrew Thompson
Andrew Thompson

Reputation: 168825

  1. Yes
  2. Ensure the Java Console is configured to show for applets & JWS apps. When it is open, type x then c. One of the two clears the cache, the other clears the console text. See the initial console text for which is which.

Upvotes: 2

Jabir
Jabir

Reputation: 2866

As described here

Application jars and resources are cached on the disk to avoid loading them the next time they are needed.

The default location of the cache depends on the operating system and can be overidden in the Java Control Panel.

Settings and controls for the cache are available in the General tab of the Java Control Panel, in the Temporary Internet Files section. Click Settings... to change the location and size of the cache. Click View... to see what files are in the cache.

You can clean the cache by running javaws -uninstall, or go to the Java Control Panel's General tab, click View..., and delete files manually. You can also use the Java Control Panel to uninstall individual applications and extensions.

Upvotes: 0

Related Questions