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.
To fully reset Microsoft Edge, you can reset your settings and clear your data in two different menus.