如何为WebStart程序自动更改Java缓存文件夹 [英] how to change Java cache folder automatically for WebStart programs

查看:62
本文介绍了如何为WebStart程序自动更改Java缓存文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在本地LAN中部署了一个Java应用程序,该应用程序被缓存在JRE缓存文件夹中.默认情况下,此缓存空间的最大大小为1GB,在大多数情况下,此处所有计算机都已使用该缓存空间.

如果不需要每天对LAN中所有用户的主文件夹进行备份(并且LAN中有200台以上的计算机),这将不是问题.

因此,通过同步用户的主文件夹批处理过程,还可以同步重达1GB的java高速缓存文件夹,这总共将产生200x1GB的流量,这是网络管理员所关心的.

解决方案是将Java缓存文件夹放置在用户主文件夹之外的某个位置,但这只能通过控制面板来完成.这就需要有人去访问所有200台计算机并手动进行更改...或者也许有一种可以自动完成工作的解决方案?

解决方案

看起来您需要在 deployment.properties 中更改 deployment.user.cachedir 属性

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html

We have a java application deployed in a local LAN, which is cached in JRE cache folder. By default this cache space can be up to 1GB in size and in most cases here all computers have used that space in total.

This will not be an issue if there is no need for doing daily backups of all user's home folders in LAN (and there are more than 200 computers in LAN).

So, by synchronizing user's home folder batch procedure also synchronizes java cache folder weighing 1GB what in total produces 200x1GB traffic what concerns network administrator.

Solution is to put java cache folder somewhere outside user's home folder, but that can be done only through control panel. That requires someone to go visit all 200 computers and change that manually... or maybe there is a solution that could do job automatically?

解决方案

Looks like you need to change the deployment.user.cachedir property in deployment.properties

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html

这篇关于如何为WebStart程序自动更改Java缓存文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆