Thursday 15 November 2007

Force Java Settings

Java caching can cause slowness with some Java Applets when using redirected folders.
The default location for java cache is in the appdata folder, so if your redirecting this to a network drive somewhere it can sometimes slow the applet when loading. The fix is to force java settings using a centralised deployment.properties file; create a file called deployment.config and put it in the windows\sun\java\deployment folder. Put the following into the file:

deployment.system.config="c:\JavaCache\deployment.properties"
deployment.system.config.mandatory="true"

This tells Java to use a centralised configuration for Java and to use the config stored in the c:\JavaCache\deployment.properties file.

Heres what I have stored in the deplyment.properties file:

#deployment.properties#Thu Nov 15 13:48:34 GMT 2007
deployment.user.cachedir=e\:\\JavaCache
deployment.user.cachedir.locked
deployment.system.cachedir=e\:\\JavaCache
deployment.system.cachedir.locked
deployment.javapi.jre.1.5.0_11.args=
deployment.javapi.jre.1.5.0_11.osname=Windows
deployment.javapi.jre.1.5.0_11.path=C\:\\Program Files\\Java\\jre1.5.0_11
deployment.javapi.jre.1.5.0_11.osarch=x86
deployment.browser.vm.iexplorer=true
deployment.browser.vm.mozilla=false
deployment.cache.jarcompression=9
deployment.version=1.5.0
deployment.capture.mime.types=true
deployment.system.tray.icon=false

No comments: