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.
If your Spotify app keeps crashing, there are several simple troubleshooting steps you can try to resolve the problem.