To clear the Java cache, open the Java control panel, which you can find in the Windows Control Panel or in System Preferences on a Mac.
First, take a backup of your messages and save it on your phone. Go to View Backups and select a conversation. Tap the ...