# Can the Java cache be cleared programatically?

**URL:** <https://forum.servoy.com/t/can-the-java-cache-be-cleared-programatically/10445>\
**Category:** Classic Servoy\
**Created:** [March 18, 2009, 10:00pm UTC](https://forum.servoy.com/t/can-the-java-cache-be-cleared-programatically/10445 "2009-03-18T22:00:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveInLA](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@SteveInLA](https://forum.servoy.com/u/SteveInLA)\
**Post date:** [March 18, 2009, 10:00pm UTC](https://forum.servoy.com/t/can-the-java-cache-be-cleared-programatically/10445/1 "2009-03-18T22:00:23Z")

</div>

I am getting ready to go live with Servoy 4.1.1. During internal testing, many issues like the Smart Client missing beans were solved by clearing the Java cache. Though you and I are capable of easily navigating through operating systems to achieve this, most of my end-users have to have their hands held by our tech support department. It would be great if I could include a button or menu command in my solution that a user could use to clear their Java cache. Is something like this possible?

Steve in LA

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [March 18, 2009, 10:45pm UTC](https://forum.servoy.com/t/can-the-java-cache-be-cleared-programatically/10445/2 "2009-03-18T22:45:52Z")

</div>

You need to know the location for the cache files. Once you know that I think it is easy to just delete them from within Servoy but…  
When you delete them from within Servoy you also delete cache files of the current client instance.  
I don’t know if you can do that and, if you do that what the penalty is going to be.
